bug-bash
[Top][All Lists]
Advanced

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

Re: [A-M]* glob matches "beta.err"


From: Stephen J. Turnbull
Subject: Re: [A-M]* glob matches "beta.err"
Date: Thu, 27 Mar 2003 01:03:56 +0900
User-agent: Gnus/5.090016 (Oort Gnus v0.16) XEmacs/21.4 (Portable Code)

>>>>> "Chet" == Chet Ramey <address@hidden> writes:

    Chet> That's `veil of tears'.

Good grief.  I had better go read the standard myself.

    Chet> Read the Bash FAQ, question E9.

I don't know which version of the standard is implemented by bash, but

http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap09.html#tag_09_03_05

as cited in the bash FAQ, says, and I quote:

    7.  In the POSIX locale, a range expression represents the set of
    collating elements that fall between two elements in the collation
    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.

In other words, signaling an error on use of a range in locales !=
POSIX, and internally doing the equivalent of LC_COLLATE=POSIX for
shell globs, are both conformant.

So deleting my file was your choice, not something required by POSIX.


-- 
Institute of Policy and Planning Sciences     http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.




reply via email to

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