Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 5 Jan 2005 14:09:17 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Emil Rojas , cygwin AT cygwin DOT com Subject: Re: Argument list too long In-Reply-To: <6.2.0.14.2.20050105110043.0cd2d900@west.lustig.com> Message-ID: References: <6 DOT 2 DOT 0 DOT 14 DOT 2 DOT 20050105101954 DOT 0cec0bd8 AT west DOT lustig DOT com> <6 DOT 2 DOT 0 DOT 14 DOT 2 DOT 20050105110043 DOT 0cd2d900 AT west DOT lustig DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 5 Jan 2005, Emil Rojas wrote: > At 10:26 AM 1/5/2005, you wrote: > > On Wed, 5 Jan 2005, Emil Rojas wrote: > > > > > 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 fine. This > > > list is a list of the source files in a development tree retrieved with > > > find. > > > > a) wrong list. > > And what was the right list? See . I redirected it to the right list and set the Reply-To accordingly. I also did so for this message - please make sure your mailer respects the Reply-To header. > > b) try "xargs". > > mounting per your instructions fixed the problem. Good. However, "xargs" is the generally used solution for this anyway -- and it's also faster since it doesn't have to build up and then parse the argument list string. > > > I just updated to see if this announcement, > > > > > > Updated: findutils-4.2.10-5, > > > http://sources.redhat.com/ml/cygwin/2004-12/msg00207.html would fix it, > > > but it does not appear to do so. > > > > c) why would findutils fix a problem with grep? > > > > > 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? > > > If it is a bug, despite reading abut reporting bugs on the cygwin web > > > site I still am totally uncertain about how one would report this bug. > > > Guidance here would be appreciated. > > > > d) CGF suggested > > "mount -X c:\cygwin\bin /usr/bin; mount -X c:\cygwin\bin /bin" > > Don't know how well it'll work, but it's worth a try. > > What is CGF? . > > Oh, and please review . > > I did, before and after, I it got me to here, as possibly the least > obnoxious thing I could do. By "here" do you mean the cygwin-talk list? And where, pray tell, is the cygwin-talk list mentioned on that page? Or do you mean the "lists.html" link that mentions cygwin-talk as the list where you could be ridiculed for asking just about anything? BTW, the "main cygwin list" that it refers to is , which, incidentally, is the list I redirected your question to. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/