delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/09/12:52:44

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
X-Authentication-Warning: eos.vss.fsi.com: ford owned process doing -bs
Date: Tue, 9 Dec 2003 11:52:15 -0600 (CST)
From: Brian Ford <ford AT vss DOT fsi DOT com>
X-X-Sender: ford AT eos
To: Todd Flinders <Todd DOT Flinders AT doj DOT ca DOT gov>
cc: cygwin AT cygwin DOT com
Subject: Re: Bug: Wildcard problem with large number of files
In-Reply-To: <sfd588fc.071@gwia.doj.ca.gov>
Message-ID: <Pine.GSO.4.58.0312091123450.28297@eos>
References: <sfd588fc DOT 071 AT gwia DOT doj DOT ca DOT gov>
MIME-Version: 1.0

Please set your mailer to line wrap at <= 80 characters.  Thanks.

Also, please search the archives before posting.

On Tue, 9 Dec 2003, Todd Flinders wrote:

> I have a directory with a large number of files.  Using wildcards to
> look at the data in this directory causes me problems when using Cygwin.
> This happens with several utilities such as ls, grep, cat, and more.  As
> an example I will use ls.
>
> ls by itself (no wildcard) works fine, and I'll spare you the huge output.
>
> flindet AT HQHDC-75VLR01 ~/IDNC data$ ls -l|wc -l
> ls -l|wc -l
>    2495
> flindet AT HQHDC-75VLR01 ~/IDNC data$ ls *
> ls *
> bash: /usr/bin/ls: Invalid argument
>
http://www.cygwin.com/ml/cygwin/2003-09/msg01607.html

> I believe this is a bug either in bash or in Cygwin because this works
> fine with bash 2.03 on Solaris 8.  Sadly, I don't have a GNU/Linux box
> handy for testing.
>
Nope, neither.  A system limit.

> bash-2.03$ bash -version
> GNU bash, version 2.03.0(1)-release (sparc-sun-solaris)
> Copyright 1998 Free Software Foundation, Inc.
> bash-2.03$ ls -l|wc -l
>     2495
> bash-2.03$ ls
> [Outrageously long list of filenames here]
>
I think you meant "ls *" here?

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

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

- Raw text -


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