xargs gives grep/gawk too much
Fri Dec 8 20:53:00 GMT 2006
Buchbinder, Barry (NIH/NIAID) [E] <BBuchbinder <at> niaid.nih.gov> writes:
> I get the following error message:
> xargs: grep: Argument list too long
> I've also gotten an equivalent error from xargs/gawk.
It looks like you are picking up the cygwin version of grep/gawk, so I'm not
sure why you are getting a failure. I might expect problems if it were a
windows-native app, where you have a 32k limit on the args and on the
environment (but ISTR the limit is distinct between the two; ie. you can pass
up to 64 k of info to a Windows process). The xargs --show-limits looks like
xargs added instead of subtracted, resulting in a buffer size bigger than 32k,
but that may be okay if it then subtracts the space for the environment later
on, so I'll have to investigate that.
Can you get things to work with -s? How much data are you trying to process,
anyway ('echo path/* | wc')?
volunteer cygwin findutils maintainer
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin