[Pkg-voip-commits] [dahdi-tools] 173/285: bash_completion: fix dahdi_genconf

tzafrir at debian.org tzafrir at debian.org
Thu Jul 7 19:18:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master
in repository dahdi-tools.

commit 63842cc4f34c1c5f2730fd3d28b07766a1e416fd
Author: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Date:   Thu Jan 23 23:16:55 2014 +0200

    bash_completion: fix dahdi_genconf
    
    Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
---
 dahdi-bash-completion | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dahdi-bash-completion b/dahdi-bash-completion
index 1e07bf6..d98074a 100644
--- a/dahdi-bash-completion
+++ b/dahdi-bash-completion
@@ -90,9 +90,9 @@ __dahdi_genconf() {
 	--line-type) COMPREPLY=( $(compgen -W 'E1 J1 T1' -- $cur) ) ;;
 	*)
 		case "$cur" in
-		-*) COMPREPLY=( ${COMPREPLY[@]} $(compgen -W '-F -v -V --freepbx --version --verbose --line-type' -- $cur ) ) ;;
+		-*) COMPREPLY+=( $(compgen -W '-F -v -V --freepbx --version --verbose --line-type' -- $cur ) ) ;;
 		*)
-			COMPREPLY=( $( perl -e 'my $file = "\u$ARGV[0]";
+			COMPREPLY+=( $(compgen -W "$( perl -e 'my $file = "\u$ARGV[0]";
 				# Complete module name. Translate the case of the
 				# first letter
 				my @pats = map {"$_/Dahdi/Config/Gen/$file*.pm"} @INC;
@@ -101,9 +101,9 @@ __dahdi_genconf() {
 						s|.*/||;
 						s|.pm$||;
 						s|^(.)|lc($1)|e;
-						print "$_\n"
+						print "$_ "
 					}
-				}') )
+				}')" -- $cur ) )
 			;;
 		esac
 		;;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/dahdi-tools.git



More information about the Pkg-voip-commits mailing list