From 396a6d7df5a034ea39b7a1917c7a5f68b9d00a2b Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Sat, 15 Nov 2014 22:36:04 +0200 Subject: bash-completion: Invoke actual commands to be completed, not basenames Addresses partially: http://bugs.debian.org/769462 Signed-off-by: Ville Skyttä --- bash-completion/chsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash-completion/chsh') diff --git a/bash-completion/chsh b/bash-completion/chsh index 70641947c..fbf8add88 100644 --- a/bash-completion/chsh +++ b/bash-completion/chsh @@ -6,7 +6,7 @@ _chsh_module() prev="${COMP_WORDS[COMP_CWORD-1]}" case $prev in '-s'|'--shell') - COMPREPLY=( $(compgen -W "$(chsh -l)" -- $cur) ) + COMPREPLY=( $(compgen -W "$($1 -l)" -- $cur) ) return 0 ;; '-u'|'--help'|'-v'|'--version') -- cgit v1.2.3-55-g7522