From: Linus Torvalds Date: Wed, 13 Jul 2005 19:51:16 GMT Subject: Re: [PATCH] stgit: allow spaces in filenames Message-ID: In-Reply-To: On Wed, 13 Jul 2005, Matthias Urlichs wrote: > > 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