delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/14/11:29:31

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
Message-Id: <5.1.0.14.2.20021114082348.0200b050@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Thu, 14 Nov 2002 08:29:27 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: problem with bash
In-Reply-To: <C1256C71.00374F6E.00@james>
Mime-Version: 1.0

Claudio,

No, that's not a bug. It's just a (system-dependent) limit shared by all 
POSIX-compliant systems. The actual limit happens to be on the low side 
under Cygwin.

Familiarize yourself with the "xargs" command. It's there just to handle 
these cases.

Also, in many cases the programs themselves process directories and don't 
need to have each file within the directory passed to them as an argument. 
Ls certainly does this (hence your "ls *" example has an equivalent without 
limits: plain old "ls") and the grep family has a -R (recursive) option 
that's related.

The reason you don't see the problem from a DOS command prompt is that 
argument handling (in particular, wild-card processing) is different when 
Cygwin programs are invoked from a DOS CMD.exe or Command.exe shell and 
that difference effectively side-steps the limit you experience when 
running under a Cygwin shell (BASH, zsh, tcsh, ash, etc.).

Good luck.

Randall Schulz
Mountain View, CA USA


At 01:59 2002-11-14, Claudio Tamietto wrote:
>I have installed cigwin on my W2K PC and all is very well functioning .
>However if i try some commands like ls * or grep -i -l some_text * from a
>directory whit a lot of files (7-8 thousand) i obtain this error
>
>bash: /usr/bin/ls: Invalid argument
>
>Is it a bug ?
>
>If i try the same commands from a dos shell the error is not reported and 
>all is functioning .


--
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