From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14737 invoked by alias); 27 Oct 2003 19:55:10 -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 14729 invoked from network); 27 Oct 2003 19:55:10 -0000 Received: from unknown (HELO smtp3.alewife.net) (4.17.146.26) by sources.redhat.com with SMTP; 27 Oct 2003 19:55:10 -0000 Received: from smtp3.alewife.net ([10.124.60.6]) by smtp3.alewife.net with Microsoft SMTPSVC(5.0.2195.6713); Mon, 27 Oct 2003 14:55:09 -0500 Received: From pecos.csw.alewife.net ([10.124.60.10]) by smtp3.alewife.net (WebShield SMTP v4.5 MR1a); id 1067284509432; Mon, 27 Oct 2003 14:55:09 -0500 Received: by pecos.csw.alewife.net with Internet Mail Service (5.5.2656.59) id <4L9VCJHD>; Mon, 27 Oct 2003 14:55:09 -0500 Message-ID: <4FF77D01E13B214590F4FA3E2C3021D0873ADA@pecos.csw.alewife.net> From: Jared Ingersoll To: "'cygwin@cygwin.com'" Subject: bash /usr/bin/ls invalid argument Date: Tue, 28 Oct 2003 00:12:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-OriginalArrivalTime: 27 Oct 2003 19:55:09.0635 (UTC) FILETIME=[39F47130:01C39CC4] X-SW-Source: 2003-10/txt/msg01667.txt.bz2 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. Jared -- 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/