delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/01/08:43:08

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: <4.3.1.2.20021101084057.02b5df08@pop.rcn.com>
X-Sender: lhall AT pop DOT rcn DOT com
Date: Fri, 01 Nov 2002 08:42:12 -0500
To: guillot DOT bernard AT hit DOT com DOT hk, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: /usr/bin/ls and /usr/bin/rm Unexpected Behavior when
requesting m ore than 1574 files or 96707 bytes of filenames
In-Reply-To: <D742D3BA5806D5118E3500306E0026C2057F4AEC@hitxch02.hit.com.
hk>
Mime-Version: 1.0

Perhaps you'll find 'xargs' helpful.

Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


At 04:29 AM 11/1/2002, guillot DOT bernard AT hit DOT com DOT hk wrote:
>Hi There,
>       Ok This is another of those weird bug.
>
>       If All your filenames adds up to more than 96707 by even just one
>char, if you request ls *.data or rm *.data  you will get a bash:
>/usr/bin/ls: Invalid argument. But ls without a pattern request will work.
>
>       Here is what I found so far.
>       - No one has reported something similar in google or Cygwin mailing
>list.
>
>       If you have more than 1574 Files (this is the cutting point for me )
>you will get 
>           $ bash: /usr/bin/ls: Invalid argument
>
>       Also It may not relate to the number of Files as much as the Length of
>the all the filenames
>      
>           attached is a tar of empty touch-ed files 1574 Total that will
>extract into it's own directory.
>
>           If you add this file 
>                 touch aaaaaaaaaaa.data
>                 ls *.data 
>                 # everything is fine
>                 
>                 # Now Create a file with one more letter in the file and it
>will not work
>                 rm    aaaaaaaaaaa.data
>                 touch aaaaaaaaaaaa.data
>                 ls *.data 
>                 bash: /usr/bin/ls: Invalid argument
>                 # everything Breaks Down
>      
>
>      On my Directory the length of all the filenames is 96707 bytes or
>\x179C3 if you add one more char as explained before it will fail. 
>
>      I have the latest release Cygwin as of this posting. PC with Windows
>2000 SP3 :-( with 256 Meg of Ram (Plenty left for malloc). The Cygperf is
>also included in the attachments.
>  
>
>Regards,
>
>Bernard Guillot
>
>Senior Systems Architect - Information Services Department
>Hong Kong International Terminals
>
>You may reach me at theses contacts:
>Tel:    (852) 2619-6123
>Fax:    (852) 2485-3315
>E-mail: guillot DOT bernard AT hit DOT com DOT hk
>Web:    http://www.hph.com.hk
>
>
>CONFIDENTIALITY: This communication and any attachment(s) is intended solely
>for the person or organisation to which it is addressed and it may be
>confidential. If you are not the intended recipient, employee or agent
>responsible for delivering the message to the intended recipient you must
>not copy, disclose, distribute or take any action in reliance on it. If you
>have received this communication in error, please notify the sender
>immediately and destroy the original.  If this communication has been
>received by email please reply and highlight the error to the sender and
>delete the original.  Thank you.
>     
>
>
>
>--
>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/ 


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