delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/26/06:59:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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, 26 Jun 2002 12:58:40 +0200
From: Thomas Baker <thomas DOT baker AT bi DOT fhg DOT de>
To: Cygwin <cygwin AT cygwin DOT com>
Subject: grep - limited number of arguments?
Message-ID: <20020626125840.A576@mail.gmd.de>
Mail-Followup-To: Thomas Baker <thomas DOT baker AT bi DOT fhg DOT de>,
Cygwin <cygwin AT cygwin DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i

Now that there is a Korn shell for Cygwin, I am completing
a switchover from MKS Toolkit, which takes a different,
native-win32 approach that is (mostly) not compatible with
Cygwin.

One difficulty I have found, however, is limitations (or so
it would seem) on the number of arguments that the command
"grep" can take.  In a directory I have with over 4300 files,
"grep FOOBAR *" exits with: "bash: /usr/bin/grep: Invalid
argument", though it can handle more limited searches (e.g.,
"grep FOOBAR 2000-12*"), and the MKS grep has no problem
with grepping the entire directory, so it would appear to
be a problem with handling arguments generally.  The files
in the directory are named with letters and numbers only,
no spaces, and none longer than 40-50 characters.

Have others found this as well, and are there workarounds?

Tom

-- 
Dr. Thomas Baker                                Thomas DOT Baker AT bi DOT fhg DOT de
Institutszentrum Schloss Birlinghoven          mobile +49-171-408-5784
Fraunhofer-Gesellschaft                          work +49-30-8109-9027
53754 Sankt Augustin, Germany                     fax +49-2241-14-2619

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019