Mailinglist Archive: opensuse (3441 mails)

< Previous Next >
Re: [opensuse] Globbing broken in bash in 11.1 (really serious bug)
  • From: "Boyd Stephen Smith Jr." <bss@xxxxxxxxxxxxxxxxx>
  • Date: Wed, 14 Jan 2009 13:36:54 -0600
  • Message-id: <200901141336.54640.bss@xxxxxxxxxxxxxxxxx>
On Wednesday 2009 January 14 12:54:20 Josef Wolf wrote:
$ LANG=C echo /[A-C]*

This changes the environment for running the echo command, it does not affect
the globing which occurs before the command is run. You want:
LANG=C; echo /[A-C]*

On my system:
$ mkdir test
$ cd test
$ touch b B
$ echo [A-C]*
b B
$ ( LANG=C; echo [A-C]* )
B
$ echo [A-C]*
b B
$ env | grep -e ^LANG -e ^LC
LANG=en_US.utf8
LANGUAGE=en_US
$

--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss@xxxxxxxxxxxxxxxxx ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/
< Previous Next >
Follow Ups