Re: [PATCH] prompt: fix tracked files for zsh
Junio C Hamano <gitster@pobox.com> writes:
Show 14 quoted lines
> Andreas Schwab <schwab@linux-m68k.org> writes:
>
>> Felipe Contreras <felipe.contreras@gmail.com> writes:
>>
>>> + if [ -n "${ZSH_VERSION-}" ]; then
>>> + u="%%"
>>> + else
>>> + u="%"
>>> + fi
>>
>> aka u="%${ZSH_VERSION:+%}"
>
> Do you need/want a colon there? Even if it is empty, as long as it
> is defined we would want this, no?The original wouldn't.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."