1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 05:10:28 +02:00

Frank Terbeck: 25561: fix quoting with aliases.

This commit is contained in:
Clint Adams 2008-08-31 16:09:08 +00:00
parent ba539203f9
commit 2c52a13aa5
2 changed files with 4 additions and 1 deletions

View file

@ -4290,7 +4290,7 @@ if (( CURRENT >= 3 )) && [[ -n ${git_aliases[$words[2]]} ]] ; then
if [[ -z "${words[3,-1]}" ]] ; then
tmpwords[$(( ${#tmpwords} + 1 ))]=""
else
tmpwords+=("${words[3,-1]}")
tmpwords+=(${words[3,-1]})
fi
words=("${tmpwords[@]}")
(( CURRENT += ${#${(z)git_aliases[$words[2]]}} - 1 ))