File tree Expand file tree Collapse file tree 6 files changed +8
-10
lines changed Expand file tree Collapse file tree 6 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -2578,7 +2578,6 @@ _comp_command_offset()
2578
2578
_comp_get_words cur
2579
2579
2580
2580
if (( COMP_CWORD == 0 )) ; then
2581
- local IFS=$' \n '
2582
2581
compopt -o filenames
2583
2582
_comp_compgen -- -d -c
2584
2583
else
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ _comp_cmd_bzip2()
26
26
return
27
27
fi
28
28
29
- local IFS= $' \n ' xspec=" *.?(t)bz2"
29
+ local xspec=" *.?(t)bz2"
30
30
31
31
if [[ $prev == --* ]]; then
32
32
[[ $prev == --@ (decompress| list| test) ]] && xspec=" !" $xspec
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ _comp_cmd_cd()
13
13
return
14
14
fi
15
15
16
- local IFS= $' \n ' i j k
16
+ local i j k
17
17
18
18
compopt -o filenames
19
19
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ _comp_cmd_gzip()
27
27
return
28
28
fi
29
29
30
- local IFS= $' \n ' xspec=" *.@(gz|t[ag]z)"
30
+ local xspec=" *.@(gz|t[ag]z)"
31
31
[[ ${1##*/ } == pigz ]] && xspec=" *.@([gz]z|t[ag]z)"
32
32
33
33
if [[ $prev == --* ]]; then
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ _comp_cmd_lzma()
15
15
return
16
16
fi
17
17
18
- local IFS= $' \n ' xspec=" *.@(lzma|tlz)"
18
+ local xspec=" *.@(lzma|tlz)"
19
19
20
20
if [[ $prev == --* ]]; then
21
21
[[ $prev == --@ (decompress| list| test) ]] && xspec=" !" $xspec
Original file line number Diff line number Diff line change @@ -30,8 +30,7 @@ _comp_deprecate_func 2.12 _rpm_installed_packages \
30
30
31
31
_comp_cmd_rpm__groups ()
32
32
{
33
- local IFS=$' \n '
34
- _comp_compgen_split -- " $( " ${1:- rpm} " -qa --nodigest --nosignature \
33
+ _comp_compgen_split -l -- " $( " ${1:- rpm} " -qa --nodigest --nosignature \
35
34
--queryformat=' %{GROUP}\n' 2> /dev/null) "
36
35
}
37
36
@@ -109,7 +108,7 @@ _comp_cmd_rpm()
109
108
_comp_compgen_filedir
110
109
else
111
110
# complete on capabilities
112
- local IFS= $' \n ' fmt
111
+ local fmt
113
112
case $prev in
114
113
* enhances) fmt=" %{ENHANCENAME}" ;;
115
114
* provides) fmt=" %{PROVIDENAME}" ;;
@@ -118,8 +117,8 @@ _comp_cmd_rpm()
118
117
* suggests) fmt=" %{SUGGESTNAME}" ;;
119
118
* supplements) fmt=" %{SUPPLEMENTNAME}" ;;
120
119
esac
121
- _comp_compgen_split -- " $( " $1 " -qa --nodigest --nosignature \
122
- --queryformat=" \" $fmt \\ n\" " 2> /dev/null |
120
+ _comp_compgen_split -l -- " $( " $1 " -qa --nodigest \
121
+ --nosignature -- queryformat=" \" $fmt \\ n\" " 2> /dev/null |
123
122
command grep -vF ' (none)' ) "
124
123
fi
125
124
return
You can’t perform that action at this time.
0 commit comments