Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <002201c2e870$84ea6450$6fc82486@tin> Reply-To: From: To: Cc: , Subject: ls : fails with a long list Date: Wed, 12 Mar 2003 08:21:58 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 ~> uname -a CYGWIN_NT-5.1 tin 1.3.20(0.73/3/2) 2003-02-08 12:10 i686 unknown unknown Cygwin If you can find somewhere on your system a directory with a "long" pathname to it and containing "many" files then I think you will be able to replicate this or something like it ~> ls -Al /usr/local/* | wc 63 410 2966 ~> ls -Al /usr/local/op/* | wc 1445 12885 90987 ~> ls -Al /usr/local/op/h/* | wc 1807 16239 115236 ~> ls -Al /usr/local/op/h/routines/* | wc bash: /usr/bin/ls: Invalid argument 0 0 0 ~> ls -Al /usr/local/op/h/routines/[c-p]* | wc 1024 9216 90033 ~> ls -Al /usr/local/op/h/routines/[c-q]* | wc bash: /usr/bin/ls: Invalid argument 0 0 0 Sorry about the adjectives "long" and "many" -- I haven't been able to specify precise thresholds here. The " | wc" pipe isn't relevant to what is being reported here, it just shows the length of successful output. So, if the pathname is short, ls successfully lists very many files. But of the pathname is long, ls will not successfully list relatively few files (1039 beginning [c-q] above). I discovered this on a routine check of my resource. I do not perform this check frequently, but have certainly done so in the past without tripping up in the way just described, and when the resource checked was very similar if not identical to today's. Either this is a "bug" that has recently been introduced into the system or ... I can see that there can/ might/ should/ must be some internal limits set on listlengths. If so it seems to me that these limits have recently been lowered. Please could they be re-set to a previous higher value? (I am sorry that what I have reported is so specific to my own resource. I tried mimicking the problem under /usr/bin, quite heavily populated, but not heavily enough as it turned out.) Thank you. Fergus PS strace gives a 3.6 MB output file for [c-p] but is empty for [c-q]. -- 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/