delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/27/14:55:36

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
Message-ID: <4FF77D01E13B214590F4FA3E2C3021D0873ADA@pecos.csw.alewife.net>
From: Jared Ingersoll <jared AT cswv DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: bash /usr/bin/ls invalid argument
Date: Mon, 27 Oct 2003 14:55:08 -0500
MIME-Version: 1.0
X-OriginalArrivalTime: 27 Oct 2003 19:55:09.0635 (UTC) FILETIME=[39F47130:01C39CC4]

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019