This is the mail archive of the
mailing list for the Cygwin project.
Re: Bug: Wildcard problem with large number of files
- From: Larry Hall <cygwin-lh at cygwin dot com>
- To: "Todd Flinders" <Todd dot Flinders at doj dot ca dot gov>, <cygwin at cygwin dot com>
- Date: Tue, 09 Dec 2003 13:01:17 -0500
- Subject: Re: Bug: Wildcard problem with large number of files
- References: <email@example.com>
- Reply-to: Cygwin List <cygwin at cygwin dot com>
You just did. ;-)
At 12:58 PM 12/9/2003, Todd Flinders you wrote:
>Yes, this was my mistake. Patrick LoPrest has already resolved this issue for me. Thanks again.
>Should I send another mail to the list stating that the problem has been resolved?
>>>> firstname.lastname@example.org 12/09/03 09:52AM >>>
>At 11:33 AM 12/9/2003, Todd Flinders you 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 ~$ bash -version
>>GNU bash, version 2.05b.0(1)-release (i686-pc-cygwin)
>>Copyright (C) 2002 Free Software Foundation, Inc.
>>flindet@HQHDC-75VLR01 ~/IDNC data$ ls -l|wc -l
>>ls -l|wc -l
>>flindet@HQHDC-75VLR01 ~/IDNC data$ 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.
>>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
>>[Outrageously long list of filenames here]
>>I know this problem has existed for at least several weeks. I apologize for just now reporting it. If I might provide more information to help, please let me know. Thank you.
>Nope. This isn't a bug. It may be a FAQ but it's not a bug. Every
>system has a limit on line length. See 'man xargs' for help getting around
>Larry Hall http://www.rfk.com
>RFK Partners, Inc. (508) 893-9779 - RFK Office
>838 Washington Street (508) 893-9889 - FAX
>Holliston, MA 01746
>CONFIDENTIALITY NOTICE: This communication with its contents may contain
>confidential and/or legally privileged information. It is solely for the
>use of the intended recipient(s). Unauthorized interception, review, use
>or disclosure is prohibited and may violate applicable laws including
>the Electronic Communications Privacy Act. If you are not the intended
>recipient, please contact the sender and destroy all copies of the
>Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html