Fix broken _allowed_groups usage (shadow and coreutils)
This commit is contained in:
parent
a73774c833
commit
42b107bcfc
1
CHANGES
1
CHANGES
@ -13,6 +13,7 @@ bash-completion (2.x)
|
|||||||
[ David Paleino ]
|
[ David Paleino ]
|
||||||
* If _filedir 'ext' returns nothing, just fallback to generic
|
* If _filedir 'ext' returns nothing, just fallback to generic
|
||||||
file completion. Patch by Clint Byrum (Debian: #619014, LP: #533985)
|
file completion. Patch by Clint Byrum (Debian: #619014, LP: #533985)
|
||||||
|
* Fix broken _allowed_groups usage (shadow and coreutils)
|
||||||
|
|
||||||
[ Freddy Vulto ]
|
[ Freddy Vulto ]
|
||||||
* Improve __reassemble_comp_words_by_ref() to not create words of
|
* Improve __reassemble_comp_words_by_ref() to not create words of
|
||||||
|
@ -84,7 +84,7 @@ _chgrp()
|
|||||||
|
|
||||||
# first parameter on line or first since an option?
|
# first parameter on line or first since an option?
|
||||||
if [[ $COMP_CWORD -eq 1 && "$cur" != -* || "$prev" == -* ]]; then
|
if [[ $COMP_CWORD -eq 1 && "$cur" != -* || "$prev" == -* ]]; then
|
||||||
_allowed_groups
|
_allowed_groups "$cur"
|
||||||
else
|
else
|
||||||
_filedir || return 0
|
_filedir || return 0
|
||||||
fi
|
fi
|
||||||
|
@ -317,10 +317,12 @@ have newgrp &&
|
|||||||
_newgrp()
|
_newgrp()
|
||||||
{
|
{
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
if [[ "`_get_cword`" == "-" ]]; then
|
_get_comp_words_by_ref cur
|
||||||
|
|
||||||
|
if [[ "$cur" == "-" ]]; then
|
||||||
COMPREPLY=( - )
|
COMPREPLY=( - )
|
||||||
else
|
else
|
||||||
_allowed_groups
|
_allowed_groups "$cur"
|
||||||
fi
|
fi
|
||||||
} &&
|
} &&
|
||||||
complete -F _newgrp newgrp
|
complete -F _newgrp newgrp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user