git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Sverre Rabbelier
Message 5 of 5 in “t/t7300: workaround ancient touch by rearranging arguments”
  1. t/t7300: workaround ancient touch by rearranging argumentsBrandon Casey, Sep 15, 2010
  2. Junio C HamanoSep 15, 2010
  3. Jeff KingSep 16, 2010
  4. Sverre RabbelierSep 17, 2010
  5. Jeff KingSep 18, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.