X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A670F2A.7090602@gmail.com>
Date: Wed, 22 Jul 2009 14:07:54 +0100
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: bash 3.2.49-22 problem (subscripts fail to run sometimes)
References: <f70324590907220515m694580d7i140551f35c921a99@mail.gmail.com>
In-Reply-To: <f70324590907220515m694580d7i140551f35c921a99@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Vitas Povilaitis wrote:
> Occasionally, a subscript fails to run, as in this example:

> $ ./t.sh Hello-1.0.0
> PACKAGE Hello VERSION 1.0.0
> PACKAGE Hello VERSION
> PACKAGE Hello VERSION 1.0.0
> 
> $ ./t.sh Hello-1.0.0
> PACKAGE Hello VERSION 1.0.0
> PACKAGE Hello VERSION 1.0.0
> PACKAGE  VERSION 1.0.0
> 
> This is under Cygwin 1.5.25-15 under Windows XP Ver. 5.1 Build 2600
> Service Pack 2.

  Doesn't reproduce on Cygwin 1.5.25-15 under W2k SP4.

> This is easily repeatable.  I run into the problem by running the
> script 4 to 6 times.

  I ran it 100 times with no error.

> Is this a Cygwin bash bug?  I wonder if it's related to running on a
> multi-core processor.

  I'm using an AMD 64x2.

>  I don't have the problem under Linux.

  Probably doesn't tell us much, except that your hardware is basically sound
so it's most likely some kind of software problem.

    cheers,
      DaveK

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

