Mailinglist Archive: opensuse (3441 mails)

< Previous Next >
Re: [opensuse] Globbing broken in bash in 11.1 (really serious bug)
  • From: Philipp Thomas <pth@xxxxxxx>
  • Date: Wed, 14 Jan 2009 19:15:28 +0100
  • Message-id: <20090114181528.GQ4738@xxxxxxxxxxx>
* Josef Wolf (jw@xxxxxxxxxxxxx) [20090114 18:50]:

I just noticed a really serious bug in bash filename globbing:

$ echo /B*
$ echo /[A-C]*
/bin /boot

Very possibly a feature not a bug. What is the output of running locale? If
LC_COLLATE is set to something else than C or POSIX bash is behaving like
it's intended as (See »info '( Matching'« on '[...]').

That info page also tells you a way how to fix it. An alternative is to
set LC_COLLATE=C before running these commands.

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >