bug-bash
[Top][All Lists]
Advanced

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

Re: range match works incorrect


From: Jan Schampera
Subject: Re: range match works incorrect
Date: Thu, 05 Jun 2008 19:14:42 +0200
User-agent: IceDove 1.5.0.14eol (X11/20080509)

Roman Rakus wrote:

> sequence, inclusive. In other locales, a range expression has
> unspecified behavior: strictly conforming applications shall not rely on
> whether the range expression is valid, or on the set of collating
> elements matched. A range expression shall be expressed as the starting
> point and the ending point separated by a hyphen ( '-' ).
>
>
> So if I understand it well, the behavior of bash isn't bad. But there is
> question, if this behavior we would like to change or not? I think more
> predictable is glob()-like behavior then strcoll().

Okay, I have to say sorry, I didn't see that exception about the
behaviour in non_POSIX locales.

I think the rationale about it is worth to read:
http://www.opengroup.org/onlinepubs/009695399/xrat/xbd_chap09.html
(scroll down to "RE Bracket Expression")

IMHO this exception has clear historical reasons.

J.






reply via email to

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