summaryrefslogtreecommitdiffstats
path: root/bash-completion/chsh
diff options
context:
space:
mode:
authorVille Skyttä2014-11-15 21:36:04 +0100
committerKarel Zak2014-11-18 13:58:21 +0100
commit396a6d7df5a034ea39b7a1917c7a5f68b9d00a2b (patch)
tree168c116db08f9f5a22f5e47bc431b91eee171bb7 /bash-completion/chsh
parentldattach: GSM0710 support, add intro modem command (diff)
downloadkernel-qcow2-util-linux-396a6d7df5a034ea39b7a1917c7a5f68b9d00a2b.tar.gz
kernel-qcow2-util-linux-396a6d7df5a034ea39b7a1917c7a5f68b9d00a2b.tar.xz
kernel-qcow2-util-linux-396a6d7df5a034ea39b7a1917c7a5f68b9d00a2b.zip
bash-completion: Invoke actual commands to be completed, not basenames
Addresses partially: http://bugs.debian.org/769462 Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Diffstat (limited to 'bash-completion/chsh')
-rw-r--r--bash-completion/chsh2
1 files changed, 1 insertions, 1 deletions
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')