[packages/bash-completion-vserver] - fixed formerly broken completion function

adwol adwol at pld-linux.org
Fri Mar 31 20:29:37 CEST 2017


commit cd49916250900364af77b4b7e6ccbe8c45068e72
Author: Adam Osuchowski <adwol at pld-linux.org>
Date:   Fri Mar 31 20:28:21 2017 +0200

    - fixed formerly broken completion function

 bash-completion-vserver.sh   | 8 ++++----
 bash-completion-vserver.spec | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/bash-completion-vserver.spec b/bash-completion-vserver.spec
index 514f64b..b16e983 100644
--- a/bash-completion-vserver.spec
+++ b/bash-completion-vserver.spec
@@ -3,7 +3,7 @@
 Summary:	bash-completion for vserver command
 Name:		bash-completion-vserver
 Version:	0.4.1
-Release:	1
+Release:	2
 License:	GPL
 Group:		Applications/Shells
 Source0:	%{name}.sh
diff --git a/bash-completion-vserver.sh b/bash-completion-vserver.sh
index 21153c5..1541161 100644
--- a/bash-completion-vserver.sh
+++ b/bash-completion-vserver.sh
@@ -182,7 +182,7 @@ _vserver() {
 				COMPREPLY=( $( compgen -W "build" -- $cur ) )
 			fi
 		else
-			COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) )
+			COMPREPLY=( $( compgen -W "${names[*]} $cmdOpts" -- $cur ) )
 		fi
 		return 0
 	fi
@@ -240,10 +240,10 @@ _vapt_rpm_yum()
 				COMPREPLY=( $( compgen -W "$cmdOpts" -- $cur ) )
 			else
 				cmdOpts='--'
-				COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) )
+				COMPREPLY=( $( compgen -W "${names[*]} $cmdOpts" -- $cur ) )
 			fi
 		else
-			COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) )
+			COMPREPLY=( $( compgen -W "${names[*]} $cmdOpts" -- $cur ) )
 		fi
 	fi
 	return 0
@@ -292,7 +292,7 @@ _vserver_copy()
 	if (( $i < ${#COMP_WORDS[@]}-1 )) ; then
 		return 0
 	else
-		COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) )
+		COMPREPLY=( $( compgen -W "${names[*]} $cmdOpts" -- $cur ) )
 	fi
 	return 0
 }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bash-completion-vserver.git/commitdiff/cd49916250900364af77b4b7e6ccbe8c45068e72



More information about the pld-cvs-commit mailing list