File tree 10 files changed +14
-14
lines changed
10 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ _comp_cmd_fbgs()
24
24
-fp | --firstpage | -lp | --lastpage | -r | --resolution | -s | --scroll | -t | \
25
25
--timeout)
26
26
# expect integer value
27
- COMPREPLY+=( $( compgen - W ' {0..9}' ) )
27
+ _comp_compgen -aR -- - W ' {0..9}'
28
28
compopt -o nospace
29
29
return
30
30
;;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ _comp_cmd_fbi()
11
11
return
12
12
;;
13
13
-r | --resolution)
14
- COMPREPLY+=( $( compgen - W ' {1..5}' ) )
14
+ _comp_compgen -aR -- - W ' {1..5}'
15
15
return
16
16
;;
17
17
-f | --font)
Original file line number Diff line number Diff line change @@ -64,15 +64,15 @@ _comp_cmd_feh()
64
64
--reload | --limit-height | --limit-width | --thumb-height | --thumb-width | \
65
65
--thumb-redraw | --magick-timeout | -${noargopts} [RHWEyJ])
66
66
# expect integer value
67
- COMPREPLY+=( $( compgen - W ' {0..9}' ) )
67
+ _comp_compgen -aR -- - W ' {0..9}'
68
68
compopt -o nospace
69
69
return
70
70
;;
71
71
--zoom)
72
72
# expect integer value or "max", "fill"
73
73
_comp_compgen -- -W ' max fill'
74
74
if [[ ! $cur || ! ${COMPREPLY-} ]]; then
75
- COMPREPLY+=( $( compgen - W ' {0..9}' ) )
75
+ _comp_compgen -aR -- - W ' {0..9}'
76
76
compopt -o nospace
77
77
fi
78
78
return
@@ -91,7 +91,7 @@ _comp_cmd_feh()
91
91
if [[ $cur && $cur != * x* ]]; then
92
92
COMPREPLY=(x)
93
93
fi
94
- COMPREPLY+=( $( compgen - W " {0..9}" ) )
94
+ _comp_compgen -aR -- - W " {0..9}"
95
95
compopt -o nospace
96
96
return
97
97
;;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ _comp_cmd_lintian__tags()
12
12
for item in $search ; do
13
13
tags=$( command sed -e " s/\<$item \>//g" <<< " $tags" )
14
14
done
15
- COMPREPLY+=( $( compgen - W " $tags " ) )
15
+ _comp_compgen -aR -- - W " $tags "
16
16
elif [[ $cur == * ,* ]]; then
17
17
_comp_compgen -ac " ${cur##* ,} " -- -P " ${cur% ,* } ," -W " $tags "
18
18
else
@@ -38,7 +38,7 @@ _comp_cmd_lintian__checks()
38
38
checks=$( command sed -e " s/\<$name \>//g" <<< " $checks" )
39
39
done
40
40
done
41
- COMPREPLY+=( $( compgen - W " $checks " ) )
41
+ _comp_compgen -aR -- - W " $checks "
42
42
elif [[ $cur == * ,* ]]; then
43
43
_comp_compgen -ac " ${cur##* ,} " -- -P " ${cur% ,* } ," -W " $checks "
44
44
else
@@ -59,7 +59,7 @@ _comp_cmd_lintian__infos()
59
59
for item in $search ; do
60
60
infos=$( command sed -e " s/\<$item \>//g" <<< " $infos" )
61
61
done
62
- COMPREPLY+=( $( compgen - W " $infos " ) )
62
+ _comp_compgen -aR -- - W " $infos "
63
63
elif [[ $cur == * ,* ]]; then
64
64
_comp_compgen -ac " ${cur##* ,} " -- -P " ${cur% ,* } ," -W " $infos "
65
65
else
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ _comp_cmd_nethogs()
8
8
case " $prev " in
9
9
-d)
10
10
# expect integer value
11
- COMPREPLY+=( $( compgen - W ' {0..9}' ) )
11
+ _comp_compgen -aR -- - W ' {0..9}'
12
12
compopt -o nospace
13
13
return
14
14
;;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ _comp_cmd_rcs()
21
21
COMPREPLY[i]=$dir$file
22
22
done
23
23
24
- COMPREPLY+=( $( compgen - G " $dir /$file *,v" ) )
24
+ _comp_compgen -aR -- - G " $dir /$file *,v"
25
25
26
26
for i in ${! COMPREPLY[*]} ; do
27
27
COMPREPLY[i]=${COMPREPLY[i]% ,v}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ _comp_cmd_useradd()
30
30
;;
31
31
--gid | -${noargopts} g)
32
32
_gids
33
- COMPREPLY+=( $( compgen -g ) )
33
+ _comp_compgen -aR -- -g
34
34
(( ${# COMPREPLY[@]} )) &&
35
35
_comp_compgen -- -W ' "${COMPREPLY[@]}"'
36
36
return
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ _comp_cmd_usermod()
26
26
;;
27
27
--gid | -${noargopts} g)
28
28
_gids
29
- COMPREPLY+=( $( compgen -g ) )
29
+ _comp_compgen -aR -- -g
30
30
(( ${# COMPREPLY[@]} )) &&
31
31
_comp_compgen -- -W ' "${COMPREPLY[@]}"'
32
32
return
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ _comp_cmd_wget()
104
104
--read-timeout | --wait | --waitretry | --cut-dirs | \
105
105
--max-redirect | --level | -${noargopts} [tTwl])
106
106
# expect integer number
107
- COMPREPLY+=( $( compgen - P " $cur " -W " {0..9}" ) )
107
+ _comp_compgen -aR -- - P " $cur " -W " {0..9}"
108
108
compopt -o nospace
109
109
return
110
110
;;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ _comp_cmd_xgamma()
17
17
if [[ $cur && $cur != * .* ]]; then
18
18
COMPREPLY=(.)
19
19
fi
20
- COMPREPLY+=( $( compgen - W " {0..9}" ) )
20
+ _comp_compgen -aR -- - W " {0..9}"
21
21
compopt -o nospace
22
22
return
23
23
;;
You can’t perform that action at this time.
0 commit comments