Re: [PATCH 1/2] am: handle stray $dotest directory
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Jun 14, 2013, 16:15 UTC
- Message-ID
- <CALkWK0n+KSrehL3tZ557c2hfKna6p_jVGL+a2az5V+h4=DstJQ@mail.gmail.com>
- In-Reply-To
- <7v1u84ra77.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
Show 9 quoted lines
> The reason would become clear once you think what string you are > feeding eval_gettext with if you do not escape. The translators > translate a fixed string (possibly with placeholders) to a fixed > translated string (possibly with placeholders). > > eval_gettext "Stray $dotest directory found. ..." > > would allow the shell to expand $dotest before eval_gettext sees it, > which would mean the string is no longer a constant.
Ah. I was scratching my head wondering why $dotest needed to be translated (it's just a path).