File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1426,8 +1426,7 @@ _comp_compgen_usage()
1426
1426
1427
1427
# This function completes on signal names (minus the SIG prefix)
1428
1428
# @param $1 prefix
1429
- # TODO:API: rename per conventions
1430
- _signals ()
1429
+ _comp_signals ()
1431
1430
{
1432
1431
local -a sigs
1433
1432
_comp_compgen -v sigs -c " SIG${cur# " ${1-} " } " -- -P " ${1-} " -A signal &&
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ _comp_deprecate_func 2.12 _get_comp_words_by_ref _comp_get_words
16
16
_comp_deprecate_func 2.12 _longopt _comp_longopt
17
17
_comp_deprecate_func 2.12 _split_longopt _comp__split_longopt
18
18
_comp_deprecate_func 2.12 __ltrim_colon_completions _comp_ltrim_colon_completions
19
+ _comp_deprecate_func 2.12 _signals _comp_signals
19
20
20
21
# Backwards compatibility for compat completions that use have().
21
22
# @deprecated 1.90 should no longer be used; generally not needed with
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ _comp_cmd_kill()
7
7
8
8
case $prev in
9
9
-s)
10
- _signals
10
+ _comp_signals
11
11
return
12
12
;;
13
13
-l | -n)
@@ -17,7 +17,7 @@ _comp_cmd_kill()
17
17
18
18
if [[ $cword -eq 1 && $cur == -* ]]; then
19
19
# return list of available signals
20
- _signals -
20
+ _comp_signals -
21
21
_comp_compgen -a help -c help " $1 "
22
22
else
23
23
# return list of available PIDs and jobs
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ _comp_cmd_killall()
14
14
return
15
15
;;
16
16
--signal | -${noargopts} s)
17
- _signals
17
+ _comp_signals
18
18
return
19
19
;;
20
20
--user | -${noargopts} u)
@@ -27,7 +27,7 @@ _comp_cmd_killall()
27
27
28
28
if [[ $cur == -* ]]; then
29
29
_comp_compgen_help
30
- (( cword == 1 )) && _signals -
30
+ (( cword == 1 )) && _comp_signals -
31
31
return
32
32
fi
33
33
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ _comp_cmd_pgrep()
12
12
return
13
13
;;
14
14
--signal)
15
- _signals
15
+ _comp_signals
16
16
return
17
17
;;
18
18
--pidfile | -${noargopts} F)
@@ -51,7 +51,7 @@ _comp_cmd_pgrep()
51
51
_comp_compgen_help ||
52
52
_comp_compgen_usage - <<< " $(" $1 " --usage 2>&1 |
53
53
command sed -e " s/\[ -signal\] //" -e " s/\[ -SIGNAL\] //" )"
54
- [[ $cword -eq 1 && $1 == * pkill ]] && _signals -
54
+ [[ $cword -eq 1 && $1 == * pkill ]] && _comp_signals -
55
55
return
56
56
fi
57
57
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ _comp_cmd_timeout()
24
24
return
25
25
;;
26
26
--signal | -${noargopts} s)
27
- _signals
27
+ _comp_signals
28
28
return
29
29
;;
30
30
esac
You can’t perform that action at this time.
0 commit comments