bug-bash
[Top][All Lists]
Advanced

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

Re: {A..z} brace expansion in Bash 3


From: Chet Ramey
Subject: Re: {A..z} brace expansion in Bash 3
Date: Tue, 3 Aug 2004 15:33:55 -0400

> Chet Ramey wrote:
> > I will take a look, but it would help to know exactly which locale.
> 
> Sorry, I should have mentioned.
> 
> It is en_GB with ISO-8859-1. 
> 
> This condition evaluates to true so testing isalpha() may not be
> entirely the right way. It probably comes before D in any collation
> sequence resulting in it ascending.
> [[ Ä = [[:alpha:]] ]]

I fixed it.  It was a problem with signed/unsigned characters.  Unless
explicitly cast to (unsigned char), chars with values > 128 will be sign-
extended to negative numbers when assigned to an int variable.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    chet@po.cwru.edu    http://tiswww.tis.cwru.edu/~chet/




reply via email to

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