delorie.com/archives/browse.cgi | search |
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-Injected-Via-Gmane: | http://gmane.org/ |
To: | cygwin AT cygwin DOT com |
From: | Andrew DeFaria <ADeFaria AT Salira DOT com> |
Subject: | Re: bash /usr/bin/ls invalid argument |
Date: | Mon, 27 Oct 2003 12:14:38 -0800 |
Lines: | 38 |
Message-ID: | <bnjub4$h52$1@sea.gmane.org> |
References: | <4FF77D01E13B214590F4FA3E2C3021D0873ADA AT pecos DOT csw DOT alewife DOT net> |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) |
X-Accept-Language: | en-us, en |
In-Reply-To: | <4FF77D01E13B214590F4FA3E2C3021D0873ADA@pecos.csw.alewife.net> |
Jared Ingersoll wrote: >Hi, > >I'm using bash 2.05b-16 on Win2K pro and I'm running into problems listing directory contents with a wildcard. This particular directory has over 8000 files in it, most of which (99%) are files that start with send.log.*. When I issue the following commands, I get the same error: > >$ ls send.log.* >bash: /usr/bin/ls: Invalid argument > >$ ls send.log.2003* >bash: /usr/bin/ls: Invalid argument > >$ ls send.log.200307* >bash: /usr/bin/ls: Invalid argument > >However, if i issuse the same command in the same directory for a different filename (amount to less that 1% of the files) it works: > >$ ls receive.log.2003* >receive.log.20030703 receive.log.20030806 receive.log.20030903 >receive.log.20031001 >receive.log.20030707 receive.log.20030807 receive.log.20030904 >receive.log.20031002 >receive.log.20030708 receive.log.20030808 receive.log.20030905 >receive.log.20031003 >receive.log.20030712 receive.log.20030809 receive.log.20030906 >receive.log.20031004 > >Any ideas what might be going on? Obviously, for scripting purposes I need to be able to list the directory contents with a wildcard (actually want to use this with grep). > >$ grep IDxxxxxxxxxxxxxxxxxxxxxx send* >bash: /usr/bin/grep: Invalid argument > >I tried this with the bourne shell and it seems to do the same thing. > man xargs. -- The careful application of terror is also a form of communication. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |