bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recent bug in pattern matching in a case statement


From: Dave Hines
Subject: Re: Recent bug in pattern matching in a case statement
Date: Tue, 15 Oct 2002 17:37:41 +0100
User-agent: Mutt/1.3.28i

On Tue, Oct 15, 2002 at 11:57:11AM -0400, Chet Ramey wrote:
> > Machine Type: i686-pc-linux-gnu
> >
> > Bash Version: 2.05b
> > Patch Level: 0
> > Release Status: release
> >
> > Description:
> >         There is a problem with pattern matching in case statements.
> >         When using a case statement inside a for loop, the pattern
> >         *[A-Z]* incorrectly matches a string of all lower case letters
> >         after the first time around the loop.
>
> Read the Bash FAQ, question E9 and item 13 in the NOTES file and make
> sure that your locale is not the issue.

<Red_face>Oops - that's it.</Red_face> After setting the locale all
the versions I have behave correctly - thanks Chet.

Now to read the rest of the FAQ. [slinks quietly away]

Dave.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]