delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/12/05:38:37

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 Markebo <andrew DOT markebo AT telia DOT com>
Subject: Re: ls : fails with a long list
Date: Wed, 12 Mar 2003 11:38:26 +0100
Lines: 20
Message-ID: <m3d6kwkgyl.fsf@telia.com>
References: <002201c2e870$84ea6450$6fc82486 AT tin>
Mime-Version: 1.0
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2
Cancel-Lock: sha1:iMsEKIlvBJv18773pPH91nql4Is=

| ~> ls -Al /usr/local/op/h/routines/[c-q]* | wc
| bash: /usr/bin/ls: Invalid argument
|       0       0       0

I think it is a bash-'problem', bash have only allocated X bytes as
command-line buffer and therefore throws up when too much info (it is
bash that converts the * to files) is squeezed into it.

How to fix it, don't have it on my mind now, but some way.. The
easiest might be do a cd /usr/local/op/h/routines and ls -Al from
there.. 

Or use find, and rotate through those files with a loop and do ls -Al
on them.. or split the ls -Al into two ls -Al's [a-n]* and [m-z]*

         /Andy

-- 
 The eye of the beholder rests on the beauty!


--
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/

- Raw text -


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