From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23120 invoked by alias); 27 Oct 2003 20:14:31 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 23113 invoked from network); 27 Oct 2003 20:14:30 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by sources.redhat.com with SMTP; 27 Oct 2003 20:14:30 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AEDkz-0003YA-00 for ; Mon, 27 Oct 2003 21:14:29 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin@cygwin.com Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AEDky-0003Y2-00 for ; Mon, 27 Oct 2003 21:14:28 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AEDky-0004f2-00 for ; Mon, 27 Oct 2003 21:14:28 +0100 From: Andrew DeFaria Subject: Re: bash /usr/bin/ls invalid argument Date: Tue, 28 Oct 2003 01:13:00 -0000 Message-ID: References: <4FF77D01E13B214590F4FA3E2C3021D0873ADA@pecos.csw.alewife.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.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> X-SW-Source: 2003-10/txt/msg01668.txt.bz2 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/