Skip to content

Commit

Permalink
fix(_comp_compgen_split): work around nounset
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed May 28, 2023
1 parent 08fba21 commit f488f96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,8 @@ _comp_compgen_split()
return 2
fi

local _split_input=$1
_comp_compgen -F "$_ifs" -- "${_compgen_options[@]}" -W '$_split_input'
local _split_input=$1 IFS=$' \t\n'
_comp_compgen -F "$_ifs" -- ${_compgen_options[@]+"${_compgen_options[@]}"} -W '$_split_input'
}

# Check if the argument looks like a path.
Expand Down

0 comments on commit f488f96

Please sign in to comment.