Re: [PATCH] t/t7300: workaround ancient touch by rearranging arguments
- From
Jeff King <peff@peff.net>
- Date
- Sep 18, 2010, 03:46 UTC
- Message-ID
- <20100918034619.GA18343@sigill.intra.peff.net>
- In-Reply-To
- <AANLkTinKxSugWedXxLPkSUKyRBBkTimawVY23+A5nzsZ@mail.gmail.com>
On Sat, Sep 18, 2010 at 01:26:25AM +0200, Sverre Rabbelier wrote:
Show 7 quoted lines
> On Thu, Sep 16, 2010 at 02:31, Jeff King <peff@peff.net> wrote: > > Hmm, this seemed eerily familiar, and sure enough: > > > > http://article.gmane.org/gmane.comp.version-control.git/101270 > > Does this call for a git_touch which does a regular 'touch' for each > of its arguments?
I don't know the broken touch's behavior, and I don't have it handy. It might handle "touch 1" fine or it might interpret it as "touch at time 1, no file arguments". Brandon's solution is good enough for a test script.
If you really wanted a portable git_touch, you would spell it ">>$file".
-Peff