bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

findutils on interix


From: Markus Duft
Subject: findutils on interix
Date: Fri, 22 Oct 2010 15:30:56 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100913 Lightning/1.0b3pre Thunderbird/3.1.3

Hey :)

I recently updated my findutils builds on interix (work without 
any patches (except a gnulib patch i already submitted), thanks 
for the great work ;) ), and stumbled across a small problem:

mduft xargs $ find /usr/ | ./xargs
./xargs: /bin/echo: Cannot allocate memory

mduft xargs $ ./xargs --show-limits
Your environment variables take up 3119 bytes
POSIX upper limit on argument length (this system): 1043409
POSIX smallest allowable upper limit on argument length (all systems): 4096
Maximum length of command we could actually use: 1040290
Size of command buffer we are actually using: 131072


It seems that max argument length is too high...

Now, i'm pretty aware that interix is doing _many_ things wrong, and
sysconf(_SC_ARG_MAX) may well return a much too high number, but to
consistently handle such cases, would it be wise to cap the max argument
length to a sane value in xargs?

Thanks,
Markus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]