This is the mail archive of the
mailing list for the cygwin project.
RE: Argument list too long
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'shout at a grape'" <cygwin-talk at cygwin dot com>
- Date: Wed, 5 Jan 2005 18:47:35 -0000
- Subject: RE: Argument list too long
- Reply-to: Talk Amongst Yourselves <cygwin-talk at cygwin dot com>
> -----Original Message-----
> From: cygwin-talk-owner On Behalf Of Emil Rojas
> Sent: 05 January 2005 18:20
> I am providing grep with a long list of files, e.g. 1200
> files with about 80K characters.
> I get the following
> bash: /bin/grep: Argument list too long
> If I reduce the total characters to less then 32K it works
Hey! Get outta here with this on-topic stuff!!!1! This is the off-topic
> I know this is not a problem under linux, and I don't
> remember it being a
> problem in earlier versions of cygwin. Is this a feature or
> a bug?
Rather than 'feature' or 'bug', call it a limitation. It's a property of the
underlying windoze system calls.
You should be able to workaround it by using "xargs grep". And I believe it
should also be possible to work around it by mounting your root partition with
the "-X option"
mount -f -X c:/cygwin/bin /bin
Can't think of a witty .sigline today....