Skip to content

Commit

Permalink
refactor: rename _comp_compgen_usergroup{ => s}
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Sep 1, 2023
1 parent a856d81 commit 1168f24
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -2008,7 +2008,7 @@ _comp_compgen_inserted_kernel_modules()
# context of current completion.
#
# @since 2.12
_comp_compgen_usergroup()
_comp_compgen_usergroups()
{
if [[ $cur == *\\\\* || $cur == *:*:* ]]; then
# Give up early on if something seems horribly wrong.
Expand Down
2 changes: 1 addition & 1 deletion bash_completion.d/000_bash_completion_compat.bash
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ _comp_deprecate_func 2.12 _pgids _comp_compgen_pgids
_comp_deprecate_func 2.12 _pnames _comp_compgen_pnames
_comp_deprecate_func 2.12 _modules _comp_compgen_kernel_modules
_comp_deprecate_func 2.12 _installed_modules _comp_compgen_inserted_kernel_modules
_comp_deprecate_func 2.12 _usergroup _comp_compgen_usergroup
_comp_deprecate_func 2.12 _usergroup _comp_compgen_usergroups
_comp_deprecate_func 2.12 _complete_as_root _comp_as_root

# Backwards compatibility for compat completions that use have().
Expand Down
4 changes: 2 additions & 2 deletions completions/chown
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ _comp_cmd_chown()

case "$prev" in
--from)
_comp_compgen_usergroup
_comp_compgen_usergroups
return
;;
--reference)
Expand All @@ -35,7 +35,7 @@ _comp_cmd_chown()
_comp_count_args :

if ((ret == 1)); then
_comp_compgen_usergroup -u
_comp_compgen_usergroups -u
else
_comp_compgen_filedir
fi
Expand Down
2 changes: 1 addition & 1 deletion completions/cpio
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ _comp_cmd_cpio()
return
;;
--owner | -${noargopts}R)
_comp_compgen_usergroup
_comp_compgen_usergroups
return
;;
--rsh-command)
Expand Down

0 comments on commit 1168f24

Please sign in to comment.