This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: problem with bash (too much file in directory)
- From: CBFalconer <cbfalconer at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 14 Nov 2002 08:18:23 -0500
- Subject: Re: problem with bash (too much file in directory)
- Organization: Ched Research
- References: <C1256C71.003C8AE8.00@james>
- Reply-to: cbfalconer at worldnet dot att dot net
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 e all is functioning .
I expect bash is globbing the argument and running into command
line length limits, while the grep run from dos is expanding the
argument on the fly. Dos doesn't glob, which has advantages and
disadvantages. Not a bug.
--
Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
--
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/