Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Sun, 25 Mar 2001 12:05:28 -0500
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: Possible globbing error in bash 2.04.7(2)?
Message-ID: <20010325120528.B28108@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <OFFE43ADE8.7DE677C5-ON88256A15.006E86D3@aero.org> <4.3.1.2.20010320152055.022c8f00@pop.ma.ultranet.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.11i
In-Reply-To: <4.3.1.2.20010320152055.022c8f00@pop.ma.ultranet.com>; from lhall@rfk.com on Tue, Mar 20, 2001 at 03:26:00PM -0500

On Tue, Mar 20, 2001 at 03:26:00PM -0500, Larry Hall (RFK Partners, Inc) wrote:
>At 03:10 PM 3/20/2001, Brian.P.Kasper@aero.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.

I can't remember if I already replied to this, but I can't duplicate this
either.  Sorry.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

