File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ _comp_cmd_ps()
50
50
--format | ? (-)[Oo] | [^-]* [Oo])
51
51
# TODO: This doesn't work well when there are multiple options for
52
52
# the non-first item (similarly to useradd --groups and others).
53
- _comp_delimited , -W " $( " $1 " L | awk ' { print $1 }' ) "
53
+ local labels=$( " $1 " L | awk ' { print $1 }' )
54
+ _comp_delimited , -W ' $labels'
54
55
return
55
56
;;
56
57
esac
Original file line number Diff line number Diff line change @@ -16,8 +16,9 @@ _comp_cmd_ss()
16
16
return
17
17
;;
18
18
--query | -${noargopts} A)
19
- _comp_delimited , -W " $( " $1 " --help |
20
- command sed -e ' s/|/ /g' -ne ' s/.*QUERY := {\([^}]*\)}.*/\1/p' ) "
19
+ local queries=$( " $1 " --help |
20
+ command sed -e ' s/|/ /g' -ne ' s/.*QUERY := {\([^}]*\)}.*/\1/p' )
21
+ _comp_delimited , -W ' $queries'
21
22
return
22
23
;;
23
24
--diag | --filter | -${noargopts} [DF])
You can’t perform that action at this time.
0 commit comments