File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,7 @@ _comp_cmd_dnssec_keygen()
39
39
if [[ $cur == -* ]]; then
40
40
_comp_compgen -R help
41
41
(( ${# COMPREPLY[@]} )) &&
42
- _comp_compgen -- -W ' $(printf "%s\n" "${COMPREPLY[@]}" |
43
- command sed -e "s/:\$//")'
42
+ _comp_compgen -- -W ' "${COMPREPLY[@]%:}"'
44
43
return
45
44
fi
46
45
} &&
Original file line number Diff line number Diff line change @@ -82,8 +82,7 @@ _comp_cmd_links()
82
82
if [[ $cur == -* ]]; then
83
83
_comp_compgen -R help
84
84
(( ${# COMPREPLY[@]} )) &&
85
- _comp_compgen -- -W ' $(printf "%s\n" "${COMPREPLY[@]}" |
86
- command grep -vF -- "->")'
85
+ _comp_compgen -- -W ' "${COMPREPLY[@]}"' -X " ->"
87
86
return
88
87
fi
89
88
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ _comp_cmd_zopfli()
14
14
if [[ $cur == -* ]]; then
15
15
_comp_compgen -R help -- -h
16
16
(( ${# COMPREPLY[@]} )) &&
17
- _comp_compgen -- -W ' $(printf "%s\n" "${COMPREPLY[@]}" |
18
- command sed -e "s/#$//")' -- " $cur "
17
+ _comp_compgen -- -W ' "${COMPREPLY[@]%#}"'
19
18
[[ ${COMPREPLY-} == --i ]] && compopt -o nospace
20
19
return
21
20
fi
You can’t perform that action at this time.
0 commit comments