File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ _update_rc_d()
7
7
local cur prev words cword
8
8
_init_completion || return
9
9
10
- local sysvdir services options valid_options
10
+ local sysvdir services options
11
11
12
12
[[ -d /etc/rc.d/init.d ]] && sysvdir=/etc/rc.d/init.d \
13
13
|| sysvdir=/etc/init.d
@@ -17,11 +17,6 @@ _update_rc_d()
17
17
options=( -f -n )
18
18
19
19
if [[ $cword -eq 1 || " $prev " == -* ]]; then
20
- valid_options=( $( \
21
- tr " " " \n" <<< " ${words[*]} ${options[*]}" \
22
- | command sed -ne " /$( command sed " s/ /\\ |/g" <<< " ${options[*]}" ) /p" \
23
- | sort | uniq -u \
24
- ) )
25
20
COMPREPLY=( $( compgen -W ' ${options[@]} ${services[@]}' \
26
21
-X ' $(tr " " "|" <<<${words[@]})' -- " $cur " ) )
27
22
elif [[ " $prev " == ? ($( tr " " " |" <<< " ${services[*]}" ) ) ]]; then
You can’t perform that action at this time.
0 commit comments