weird bash behaviour in F13 with wildcards
joachim.backes at rhrk.uni-kl.de
Wed May 12 16:00:13 UTC 2010
On 05/12/2010 05:49 PM, Eric Blake wrote:
> On 05/12/2010 09:38 AM, Joachim Backes wrote:
>> the F13 bash seems to behave incorrect:
>> If you have only the files a,B and z in some directory (not more), then
>> the command "echo [a-z]" only should echo the text "a z"
>> But the bash in F13 echoes the text: "a B z".
> That's an issue with your locale. Probably between your upgrade from
> earlier Fedora to F13, your environment was changed to export
> LC_ALL=en_US or some such, whereas you were previously used to LC_ALL=C
> (or at least LC_COLLATE).
>> I checked this in earlier Fedoras, there the behaviour is correct (as
>> described: echoes "a z").
> Correct is in the eye of the beholder. This is a frequently reported
> non-bug, at least on the upstream bash list.
>> Using zsh instead of bash in F13 echoes "a z" and not "a B z". That is
>> correct too.
> zsh doesn't follow collation rules when expanding  globs; but bash
> does. POSIX says that the expansion of  outside of the C locale is
> implementation-defined, so either behavior is right.
>> Anybody has an idea? Can this behavior depend on environment variables?
> Yes, it depends on the locale env vars.
Thanks: export LC_ALL=C;echo [a-z]
By default, in F13 I did not set LC_ALL to some value (but in F12, it is
set to C).
Joachim Backes <joachim.backes at rhrk.uni-kl.de>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6131 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/test/attachments/20100512/fbd308ce/attachment.bin
More information about the test