This is the mail archive of the
mailing list for the Cygwin project.
Re: Bug: Wildcard problem with large number of files
- From: Brian Ford <ford at vss dot fsi dot com>
- To: Todd Flinders <Todd dot Flinders at doj dot ca dot gov>
- Cc: cygwin at cygwin dot com
- Date: Tue, 9 Dec 2003 11:52:15 -0600 (CST)
- Subject: Re: Bug: Wildcard problem with large number of files
- References: <email@example.com>
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@HQHDC-75VLR01 ~/IDNC data$ ls -l|wc -l
> ls -l|wc -l
> flindet@HQHDC-75VLR01 ~/IDNC data$ ls *
> ls *
> bash: /usr/bin/ls: Invalid argument
> 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
> bash-2.03$ ls
> [Outrageously long list of filenames here]
I think you meant "ls *" here?
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html