Skip to content

Commit

Permalink
Fix __ltrim_colon_completions() fail on parameter (\$1) containing a …
Browse files Browse the repository at this point in the history
…glob.
  • Loading branch information
AllKind authored and GArik committed Mar 9, 2013
1 parent 48158ee commit e191799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ __ltrim_colon_completions()
{
if [[ "$1" == *:* && "$COMP_WORDBREAKS" == *:* ]]; then
# Remove colon-word prefix from COMPREPLY items
local colon_word=${1%${1##*:}}
local colon_word=${1%"${1##*:}"}
local i=${#COMPREPLY[*]}
while [[ $((--i)) -ge 0 ]]; do
COMPREPLY[$i]=${COMPREPLY[$i]#"$colon_word"}
Expand Down

0 comments on commit e191799

Please sign in to comment.