Could ARG_MAX be increased?

Dimitry Andric dimitry at
Fri Sep 24 08:00:46 PDT 2004

On 2004-09-24 at 15:45:23 Daniel O'Connor wrote:

>> This and xargs -0 for the cases where filenames can contain whitespace
>> works like a charm anywhere, anytime...

> It's only a pitty that you can have newlines in filenames :)

That shouldn't matter, since the -0 argument to xargs tells it to
expect NUL characters *instead* of spaces or newlines.  As long as NUL
characters aren't allowed in filenames, it should work. :)

Note that there's still a chance that the program actually called by
xargs doesn't handle newlines or other weird characters in filenames
properly, though...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
Url :

More information about the freebsd-current mailing list