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()
25782578 _comp_get_words cur
25792579
25802580 if (( COMP_CWORD == 0 )) ; then
2581- local IFS=$' \n '
25822581 compopt -o filenames
25832582 _comp_compgen -- -d -c
25842583 else
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ _comp_cmd_bzip2()
2626 return
2727 fi
2828
29- local IFS= $' \n ' xspec=" *.?(t)bz2"
29+ local xspec=" *.?(t)bz2"
3030
3131 if [[ $prev == --* ]]; then
3232 [[ $prev == --@ (decompress| list| test) ]] && xspec=" !" $xspec
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ _comp_cmd_cd()
1313 return
1414 fi
1515
16- local IFS= $' \n ' i j k
16+ local i j k
1717
1818 compopt -o filenames
1919
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ _comp_cmd_gzip()
2727 return
2828 fi
2929
30- local IFS= $' \n ' xspec=" *.@(gz|t[ag]z)"
30+ local xspec=" *.@(gz|t[ag]z)"
3131 [[ ${1##*/ } == pigz ]] && xspec=" *.@([gz]z|t[ag]z)"
3232
3333 if [[ $prev == --* ]]; then
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ _comp_cmd_lzma()
1515 return
1616 fi
1717
18- local IFS= $' \n ' xspec=" *.@(lzma|tlz)"
18+ local xspec=" *.@(lzma|tlz)"
1919
2020 if [[ $prev == --* ]]; then
2121 [[ $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 \
3030
3131_comp_cmd_rpm__groups ()
3232{
33- local IFS=$' \n '
34- _comp_compgen_split -- " $( " ${1:- rpm} " -qa --nodigest --nosignature \
33+ _comp_compgen_split -l -- " $( " ${1:- rpm} " -qa --nodigest --nosignature \
3534 --queryformat=' %{GROUP}\n' 2> /dev/null) "
3635}
3736
@@ -109,7 +108,7 @@ _comp_cmd_rpm()
109108 _comp_compgen_filedir
110109 else
111110 # complete on capabilities
112- local IFS= $' \n ' fmt
111+ local fmt
113112 case $prev in
114113 * enhances) fmt=" %{ENHANCENAME}" ;;
115114 * provides) fmt=" %{PROVIDENAME}" ;;
@@ -118,8 +117,8 @@ _comp_cmd_rpm()
118117 * suggests) fmt=" %{SUGGESTNAME}" ;;
119118 * supplements) fmt=" %{SUPPLEMENTNAME}" ;;
120119 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 |
123122 command grep -vF ' (none)' ) "
124123 fi
125124 return
You can’t perform that action at this time.
0 commit comments