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

Re: [PATCH] stgit: allow spaces in filenames

From
Linus Torvalds <torvalds@osdl.org>
Date
Jul 13, 2005, 19:51 UTC
Message-ID
<Pine.LNX.4.58.0507131250060.17536@g5.osdl.org>
In-Reply-To
<pan.2005.07.13.16.54.18.709929@smurf.noris.de>
On Wed, 13 Jul 2005, Matthias Urlichs wrote:
Show 6 quoted lines
>
> Hi, Bryan Larsen wrote:
> 
> > +	r=os.spawnvp(os.P_WAIT, args_l[0], args_l + args[i:min(i+1000, len(args))])
> 
> The max length for argv is 32k IIRC, so 1000 is 28-byte file names.

I think 32k may be the posix-mandated minimum. Linux does 128kB, so 1000 should likely be ok for most projects.

That said, xargs should do things like that right.
		Linus
Previous: Matthias Urlichs
Message 11 of 11 in “stgit: allow spaces in filenames”
  1. stgit: allow spaces in filenamesBryan Larsen, Jul 13, 2005
  2. stgit: new --message does not workBryan Larsen, Jul 13, 2005
  3. Catalin MarinasJul 13, 2005
  4. Bryan LarsenJul 13, 2005
  5. Jerry SeutterJul 13, 2005
  6. Catalin MarinasJul 13, 2005
  7. Junio C HamanoJul 13, 2005
  8. Catalin MarinasJul 14, 2005
  9. Bryan LarsenJul 14, 2005
  10. Matthias UrlichsJul 13, 2005
  11. Linus TorvaldsJul 13, 2005

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.