aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/chgrp.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bash_completion.d/chgrp.bash')
-rw-r--r--bash/bash_completion.d/chgrp.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bash_completion.d/chgrp.bash b/bash/bash_completion.d/chgrp.bash
index 5e93ccee..e63651c5 100644
--- a/bash/bash_completion.d/chgrp.bash
+++ b/bash/bash_completion.d/chgrp.bash
@@ -9,6 +9,6 @@ _chgrp() {
done
while read -r group ; do
COMPREPLY[${#COMPREPLY[@]}]=$group
- done < <(compgen -A group -- "${COMP_WORDS[COMP_CWORD]}")
+ done < <(compgen -A group -- "$2")
}
complete -F _chgrp -o bashdefault -o default chgrp