Re: [PATCH] t/t7300: workaround ancient touch by rearranging arguments
- From
Jeff King <peff@peff.net>
- Date
- Sep 16, 2010, 00:31 UTC
- Message-ID
- <20100916003117.GA2527@sigill.intra.peff.net>
- In-Reply-To
- <i6Vnwbi85zvoD6Nzpw2lc1cAb4fZRJiU13x2r3wnIFnHDZWo9gkMwp9pRXJjgiXl4Ce-ERc-tvc@cipher.nrlssc.navy.mil>
On Wed, Sep 15, 2010 at 03:58:22PM -0500, Brandon Casey wrote:
Show 8 quoted lines
> From: Brandon Casey <drafnel@gmail.com> > > The ancient touch on Solaris 7 thinks that a decimal number supplied as > the first argument specifies a date_time to give to the files specified by > the remaining arguments. In this case, it fails to parse '1' as a proper > date_time and exits with a failure status. Workaround this flaw by > rearranging the arguments supplied to touch so that a non-digit appears > first and touch will not be confused.
Hmm, this seemed eerily familiar, and sure enough:
http://article.gmane.org/gmane.comp.version-control.git/101270
I don't _think_ I had Solaris 7 anytime recently, so the issue may be even more widespread (I would guess that my patch was a result of Solaris 8). Anyway, good catch.
-Peff