Skip to content

Commit 183e265

Browse files
akinomyogascop
andcommitted
fix(__parse_options): remove unneeded IFS adjustment
We needed to adjust IFS for splitting before, but we do not need it now because we switched to `_comp_split`. IFS is anyway adjusted by callers `_parse_help` and `_part_usage`. Co-authored-by: Ville Skyttä <[email protected]>
1 parent c898bdb commit 183e265

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

bash_completion

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,8 +1082,6 @@ __parse_options()
10821082
fi
10831083
[[ $option ]] || return 1
10841084

1085-
local IFS=$' \t\n' # affects parsing of the regexps below...
1086-
10871085
# Expand --[no]foo to --foo and --nofoo etc
10881086
if [[ $option =~ (\[((no|dont)-?)\]). ]]; then
10891087
option2=${option/"${BASH_REMATCH[1]}"/}

0 commit comments

Comments
 (0)