File tree Expand file tree Collapse file tree 9 files changed +11
-12
lines changed Expand file tree Collapse file tree 9 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -102,9 +102,9 @@ _comp_cmd_7z()
102
102
else
103
103
if [[ ${words[1]} == d ]]; then
104
104
local IFS=$' \n '
105
- COMPREPLY=($( compgen -W " $( printf ' %s\n ' " $( " $1 " l " ${words[2]} " \
105
+ COMPREPLY=($( compgen -W " $( " $1 " l " ${words[2]} " \
106
106
-slt 2> /dev/null | command sed -n ' /^Path =/s/^Path = \(.*\)$/\1/p' \
107
- 2> /dev/null | tail -n+2) " ) " -- " $cur " ) )
107
+ 2> /dev/null | tail -n+2) " -- " $cur " ) )
108
108
compopt -o filenames
109
109
else
110
110
_comp_compgen_filedir
Original file line number Diff line number Diff line change @@ -156,8 +156,7 @@ _comp_cmd_curl()
156
156
157
157
if [[ $cur == -* ]]; then
158
158
_comp_compgen_help -- --help all
159
- [[ ${COMPREPLY-} ]] ||
160
- COMPREPLY=($( compgen -W ' $(_parse_help "$1")' -- " $cur " ) )
159
+ [[ ${COMPREPLY-} ]] || _comp_compgen_help
161
160
fi
162
161
} &&
163
162
complete -F _comp_cmd_curl curl
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ _comp_cmd_koji()
235
235
fi
236
236
237
237
if [[ $cur == -* ]]; then
238
- COMPREPLY=( $( compgen -W ' $(_parse_help "$1") ' -- " $cur " ) )
238
+ _comp_compgen_help
239
239
[[ ${COMPREPLY-} == * = ]] && compopt -o nospace
240
240
elif [[ ! $has_command ]]; then
241
241
COMPREPLY=($( compgen -W ' $("$1" --help-commands 2>/dev/null | \
Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ _comp_cmd_lspci()
18
18
return
19
19
;;
20
20
-* A)
21
- COMPREPLY+ =($( compgen -W ' $("$1" -A help | command grep -vF :)' \
21
+ COMPREPLY=($( compgen -W ' $("$1" -A help | command grep -vF :)' \
22
22
-- " $cur " ) )
23
23
return
24
24
;;
25
25
-* H)
26
- _comp_compgen -a - - -W " 1 2"
26
+ _comp_compgen -- -W " 1 2"
27
27
return
28
28
;;
29
29
-* F)
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ _comp_cmd_medusa()
16
16
;;
17
17
-* M)
18
18
COMPREPLY=($( compgen -W " $( " $1 " -d | awk ' /^ +\+/ {print $2}' |
19
- command sed -e ' s/\.mod$//' ) " ) )
19
+ command sed -e ' s/\.mod$//' ) " -- " $cur " ) )
20
20
return
21
21
;;
22
22
esac
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ _comp_cmd_pgrep()
37
37
;;
38
38
--nslist)
39
39
COMPREPLY=(
40
- $( IFS=" $IFS , " compgen -W ' $("$1" --help 2>&1 |
40
+ $( IFS=$' \t\n , ' compgen -W ' $("$1" --help 2>&1 |
41
41
command sed -ne \
42
42
"s/^[[:space:]]*Available namespaces://p")' \
43
43
-- " ${cur##* ,} " ) )
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ _comp_cmd_pydoc()
33
33
COMPREPLY+=($( compgen -W \
34
34
' $("$1" keywords topics | command sed -e /^Here/d)' -- " $cur " ) )
35
35
36
- _comp_compgen_filedir py
36
+ _comp_compgen -a filedir py
37
37
} &&
38
38
complete -F _comp_cmd_pydoc pydoc pydoc3
39
39
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ _comp_cmd_reportbug()
30
30
return
31
31
;;
32
32
--tag | --ui | --interface | --type | --bts | --severity | --mode | -${noargopts} [TutBS])
33
- COMPREPLY+ =($(
33
+ COMPREPLY=($(
34
34
compgen -W \
35
35
' $("$1" "$prev" help 2>&1 | sed -ne "/^[[:space:]]/p")' \
36
36
-- " $cur "
Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ _comp_cmd_tar__try_list_archive()
437
437
while read -r line; do
438
438
printf " %q\n" " $( printf %q" \n" " $line " ) "
439
439
done
440
- ) " -- " $( printf " %q\n " " $cur " ) " ) )
440
+ ) " -- " $( printf %q " $cur " ) " ) )
441
441
return 0
442
442
fi
443
443
}
You can’t perform that action at this time.
0 commit comments