[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: range match works incorrect
From: |
Chet Ramey |
Subject: |
Re: range match works incorrect |
Date: |
Thu, 05 Jun 2008 15:11:21 -0400 |
User-agent: |
Thunderbird 2.0.0.14 (Macintosh/20080421) |
Jan Schampera wrote:
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.
The discussion in the rationale captures the essentials of the dispute
the last time this came up as a bash bug. The invented `collating
element order' and the Posix requirement to use it are useless without
a standard API to query it. Without that, one is left with either the
standard APIs that understand locales (strcoll, etc.), or native order.
Bash and glibc made different choices here.
Roman is arriving late to this fight. :-)
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/