Skip to content

Commit

Permalink
fix(_comp_compgen_term): replace completions by default
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Sep 1, 2023
1 parent d380498 commit d3696a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bash_completion
Expand Up @@ -2244,7 +2244,7 @@ _comp_compgen_dvd_devices()
# @since 2.12
_comp_compgen_terms()
{
_comp_compgen -a split -- "$({
_comp_compgen_split -- "$({
command sed -ne 's/^\([^[:space:]#|]\{2,\}\)|.*/\1/p' /etc/termcap
{
toe -a || toe
Expand Down
7 changes: 6 additions & 1 deletion bash_completion.d/000_bash_completion_compat.bash
Expand Up @@ -21,7 +21,6 @@ _comp_deprecate_func 2.12 _kernel_versions _comp_compgen_kernel_versions
_comp_deprecate_func 2.12 _uids _comp_compgen_uids
_comp_deprecate_func 2.12 _gids _comp_compgen_gids
_comp_deprecate_func 2.12 _xinetd_services _comp_compgen_xinetd_services
_comp_deprecate_func 2.12 _terms _comp_compgen_terms
_comp_deprecate_func 2.12 _pids _comp_compgen_pids
_comp_deprecate_func 2.12 _pgids _comp_compgen_pgids
_comp_deprecate_func 2.12 _pnames _comp_compgen_pnames
Expand Down Expand Up @@ -380,6 +379,12 @@ _usb_ids()
_comp_compgen -a usb_ids
}

# @deprecated 2.12 Use `_comp_compgen -a terms`
_terms()
{
_comp_compgen -a terms
}

# @deprecated 2.12 Use `_comp_compgen -c "${prefix:-$cur}" allowed_users`
_allowed_users()
{
Expand Down

0 comments on commit d3696a3

Please sign in to comment.