[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nocaseglob
From: |
Bob Proulx |
Subject: |
Re: nocaseglob |
Date: |
Sat, 20 Jan 2007 18:27:55 -0700 |
User-agent: |
Mutt/1.5.9i |
Bruce Korb wrote:
> This cannot have been overseen, so perhaps I am not understanding
> how "nocaseglob" is supposed to work:
I think you have the nocaseglob right. I think this is a variable set
but not exported problem. Just guessing though.
> $ bash --version
> GNU bash, version 3.1.17(1)-release (i586-suse-linux)
Same as here on my Debian system:
echo $BASH_VERSION
3.1.17(1)-release
> $ shopt|fgrep caseglob
> nocaseglob off
Looks okay. Same here.
> $ echo tpdsrc/umod/nodesvr/test/[a-z]*
> tpdsrc/umod/nodesvr/test/Makefile tpdsrc/umod/nodesvr/test/SCCS
> tpdsrc/umod/node
>
> What are the "Makefile" and "SCCS" entries doing on the line?
That does look odd. I have a guess as to the problem.
> And, yes, I know there are some language environments that say
> to ignore case (completely wrong-headed decisions, but nevertheless):
>
> $ env|egrep 'LC|LANG'
> $
Try this to see if the variable is set but not exported.
set|egrep 'LC|LANG'
Here is my test case:
+ mkdir /tmp/test-set-export
+ cd /tmp/test-set-export
+ touch abc DEF
+ unset LANG LC_COLLATE
+ echo abc
abc
+ LC_COLLATE=en_US.UTF-8
+ echo abc DEF
abc DEF
+ env
+ egrep 'LC|LANG'
LANGUAGE=en_US:en_GB:en
+ set
+ egrep 'LC|LANG'
LANGUAGE=en_US:en_GB:en
LC_COLLATE=en_US.UTF-8
I hope that is your problem. A set but not exported LC_COLLATE
variable. Definitely easy to miss.
Bob
- nocaseglob, Bruce Korb, 2007/01/20
- Re: nocaseglob, Andreas Schwab, 2007/01/20
- Re: nocaseglob,
Bob Proulx <=
- Re: nocaseglob, Bruce Korb, 2007/01/22
- Re: nocaseglob, Bob Proulx, 2007/01/22
- Re: nocaseglob, Bruce Korb, 2007/01/22
- Re: nocaseglob, Tim Waugh, 2007/01/22
- Re: nocaseglob, Chet Ramey, 2007/01/23
- Re: nocaseglob, Bruce Korb, 2007/01/23
- Re: nocaseglob, Matthew Woehlke, 2007/01/23
- Re: nocaseglob, Andreas Schwab, 2007/01/23
- Re: nocaseglob, Tim Waugh, 2007/01/23
- Re: nocaseglob, Chet Ramey, 2007/01/23