Re: [PATCH v2] t0003: properly quote $HOME
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Oct 18, 2010, 10:02 UTC
- Message-ID
- <20101018100237.GB5641@burratino>
- In-Reply-To
- <b280c19ddc25f2f3a76d1871ed79906663daa802.1287392872.git.trast@student.ethz.ch>
Thomas Rast wrote:
> This would be valid > according to POSIX, but bash 4 helpfully declines to execute the > command in question with an "ambiguous redirection" error.
For the benefit of those wondering why they never saw this problem, even after using bash for a while: bash in POSIX mode (e.g. when running as "sh") does not have the same problem.
Presumably that's why this problem was not noticed until on a platform without bash as /bin/sh, in v1.7.0-rc1~30 (work around an obnoxious bash "safety feature" on OpenBSD, 2010-01-26).
I still like the patch. :)