File tree Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ _comp_cmd_yum__list()
8
8
if [[ $1 == all ]]; then
9
9
# Try to strip in between headings like "Available Packages"
10
10
# This will obviously only work for English :P
11
- COMPREPLY=( $( yum -d 0 -C list " $1 " " $cur *" 2> /dev/null |
11
+ _comp_split COMPREPLY " $( yum -d 0 -C list " $1 " " $cur *" 2> /dev/null |
12
12
command sed -ne ' /^Available /d' -e ' /^Installed /d' \
13
- -e ' /^Updated /d' -e ' s/[[:space:]].*//p' ) )
13
+ -e ' /^Updated /d' -e ' s/[[:space:]].*//p' ) "
14
14
else
15
15
# Drop first line (e.g. "Updated Packages")
16
- COMPREPLY=( $( yum -d 0 -C list " $1 " " $cur *" 2> /dev/null |
17
- command sed -ne 1d -e ' s/[[:space:]].*//p' ) )
16
+ _comp_split COMPREPLY " $( yum -d 0 -C list " $1 " " $cur *" 2> /dev/null |
17
+ command sed -ne 1d -e ' s/[[:space:]].*//p' ) "
18
18
fi
19
19
}
20
20
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ _comp_cmd_cpan2dist()
27
27
[[ -d $dir && -r " $dir /02packages.details.txt.gz" ]] &&
28
28
packagelist=" $dir /02packages.details.txt.gz"
29
29
done
30
- [[ $packagelist ]] && COMPREPLY=( $( zgrep " ^${cur// -/:: } " \
30
+ [[ $packagelist ]] && _comp_split COMPREPLY " $( zgrep " ^${cur// -/:: } " \
31
31
" $packagelist " 2> /dev/null | _comp_awk ' {print $1}' |
32
- command sed -e ' s/::/-/g' ) )
32
+ command sed -e ' s/::/-/g' ) "
33
33
fi
34
34
} &&
35
35
complete -F _comp_cmd_cpan2dist -o default cpan2dist
Original file line number Diff line number Diff line change @@ -154,11 +154,10 @@ _comp_cmd_make()
154
154
# mode=-d # display-only mode
155
155
# fi
156
156
157
- local IFS=$' \t\n '
158
- COMPREPLY=($( LC_ALL=C \
157
+ _comp_split COMPREPLY " $( LC_ALL=C \
159
158
$1 -npq __BASH_MAKE_COMPLETION__=1 \
160
159
${makef+" ${makef[@]} " } " ${makef_dir[@]} " .DEFAULT 2> /dev/null |
161
- _comp_cmd_make__extract_targets " $mode " " $cur " ) )
160
+ _comp_cmd_make__extract_targets " $mode " " $cur " ) "
162
161
163
162
_comp_cmd_make__truncate_non_unique_paths
164
163
Original file line number Diff line number Diff line change @@ -83,14 +83,13 @@ _comp_cmd_xvnc4viewer()
83
83
WMDecorationWidth ZlibLevel)
84
84
[[ $cur == --* ]] && dash=-- || dash=-
85
85
86
- local IFS=$' \t\n '
87
- COMPREPLY=($(
86
+ _comp_split COMPREPLY " $(
88
87
shopt -s nocasematch
89
88
local option
90
89
for option in " ${options[@]} " ; do
91
90
[[ $dash$option == " $cur " * ]] && printf ' %s\n' " $dash$option "
92
91
done
93
- ) )
92
+ ) "
94
93
else
95
94
_comp_compgen_known_hosts -- " $cur "
96
95
fi
You can’t perform that action at this time.
0 commit comments