This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: /usr/bin/ls and /usr/bin/rm Unexpected Behavior when requesting m ore than 1574 files or 96707 bytes of filenames


Perhaps you'll find 'xargs' helpful.

Larry Hall                              lhall@rfk.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.bernard@hit.com.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.bernard@hit.com.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]