delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-Id: | <4.3.1.2.20010320152055.022c8f00@pop.ma.ultranet.com> |
X-Sender: | lhall AT pop DOT ma DOT ultranet DOT com |
X-Mailer: | QUALCOMM Windows Eudora Version 4.3.1 |
Date: | Tue, 20 Mar 2001 15:26:00 -0500 |
To: | Brian DOT P DOT Kasper AT aero DOT org, cygwin AT sources DOT redhat DOT com |
From: | "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com> |
Subject: | Re: Possible globbing error in bash 2.04.7(2)? |
In-Reply-To: | <OFFE43ADE8.7DE677C5-ON88256A15.006E86D3@aero.org> |
Mime-Version: | 1.0 |
At 03:10 PM 3/20/2001, Brian DOT P DOT Kasper AT aero DOT org wrote: >Unfortunately, the problems seem to be intermittant, but I have >developed a test script which will demonstrate problem 2 on my >system: > >#!/bin/bash > >declare -i a=0 > >while [ $a -lt 1000 ]; do > let a=$a+1 > echo > tt/$a > if ls tt/* > /dev/null > then > echo $a OK > else > echo $a Failed > fi >done You forgot to add "mkdir tt"!:-) >The output of this script looks like > >1 OK >2 OK >3 OK >4 OK >5 OK > >until ... > >509 OK >510 OK >511 Failed >512 OK >513 OK > >The failures become more frequent from then on. I aborted the script >when i = 836; up to that point, I had experienced 45 failures. At the >times when the failures were really frequent, there appeared to be a >pattern in which alternate attempts failed, but this was not always true. > >I believe the problem lies with the way in which bash globs the >command line, because 'ls *' fails when 'ls' succeeds: > >tmp 563 $ cd tt<cr> >tt 564 $ ls<cr> >(... file listing displayed ...) >tt 565 $ ls * > 63930 [main] bash 297 handle_exceptions: Exception: >STATUS_ACCESS_VIOLATION > 65716 [main] bash 297 stackdump: Dumping stack trace to ls.exe.stackdump >Segmentation fault (core dumped) >tt 566 $ Hm, this works for me using: GNU bash, version 2.04.7(2)-release (i686-pc-cygwin) and 1.1.8(0.34/3/2) 2001-01-31 10:08 i686 unknown I ran it until i = 836 like you did without a problem. It did slow down significantly though (observed guess of a factor of 2). Maybe the issue you're noticing is actually a Cygwin problem. Larry -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |