Skip to content

Commit e923e7f

Browse files
akinomyogascop
authored andcommitted
fix(_comp_delimited): work around bash-4.2 quoting
1 parent 0eea357 commit e923e7f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bash_completion

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,10 @@ _comp_delimited()
895895
_comp_compgen COMPREPLY "$@" -- "${cur##*"$delimiter"}"
896896
fi
897897

898-
((${#COMPREPLY[@]})) && COMPREPLY=("${COMPREPLY[@]/#/"$prefix"}")
898+
local i
899+
for i in "${!COMPREPLY[@]}"; do
900+
COMPREPLY[i]="$prefix${COMPREPLY[i]}"
901+
done
899902

900903
[[ $delimiter != : ]] || __ltrim_colon_completions "$cur"
901904
}

0 commit comments

Comments
 (0)