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

Re: What's cooking in git.git (Oct 2013, #02; Mon, 14)

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 15, 2013, 20:05 UTC
Message-ID
<20131015200528.GE9464@google.com>
In-Reply-To
<525D9A96.6050209@web.de>
Jens Lehmann wrote:
> Am 15.10.2013 21:16, schrieb Jonathan Nieder:
>> So I suspect this will fix more scripts than it breaks, though it may
>> still break some. :/
>
> Hmm, I'm really not sure if we should do this or not.

What convinced me was Anders's observation that the current behavior can have very bad consequences if a script is passing untrusted input in multiple arguments to git submodule foreach.

I still haven't found any examples that pass input intended for the shell to git submodule foreach in multiple arguments. I suspect no one will notice, except that some scripts (like libreoffice's "g") start to work better when passed arguments containing shell metacharacters.

> And maybe only change that on a major version bump where people should
> not be terribly surprised about such a change in behavior and are more
> likely to read release notes?
Ok with me, but please don't make it 2.0. :)
[...]
Show 5 quoted lines
>                                                                E.g. at
> $dayjob we have foreach commands running in the shell execution for
> quite some jobs on our Jenkins server; nobody would see any warnings
> there until we'd have the reason to dig deeper int the logs because
> something breaks.

Yes, I think that's typical. Warning to stderr probably wouldn't help.

Thanks, Jonathan

Previous: Jens LehmannNext: Jens Lehmann
Message 7 of 9 in “What's cooking in git.git (Oct 2013, #01; Mon, 14)”
  1. Jonathan NiederOct 14, 2013
  2. What's cooking in git.git (Oct 2013, #02; Mon, 14)Jonathan Nieder, Oct 15, 2013
  3. Ramkumar RamachandraOct 15, 2013
  4. Junio C HamanoOct 15, 2013
  5. Jonathan NiederOct 15, 2013
  6. Jens LehmannOct 15, 2013
  7. Jonathan NiederOct 15, 2013
  8. Jens LehmannOct 16, 2013
  9. Jens LehmannOct 15, 2013

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.