bug-bash
[Top][All Lists]
Advanced

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

Re: nocaseglob


From: Bruce Korb
Subject: Re: nocaseglob
Date: Mon, 22 Jan 2007 07:11:37 -0800

On 1/20/07, Bob Proulx <address@hidden> wrote:
I think you have the nocaseglob right.  I think this is a variable set
but not exported problem.  Just guessing though.

Excellent guess. No cigar, tho:

$ echo [a-z]*
bin bk-archives Bugzilla core cron Desktop [[...]]
$ LC_COLLATE=C echo [a-z]*
bin bk-archives Bugzilla core cron Desktop [[...]]
$ set | egrep '^L'
LESS=-eMagis
LIBDIR=/home/usr/bkorb/Linux-i686/lib
LINES=70
LOGNAME=bkorb
$ LC_COLLATE=C ; echo [a-z]*
bin bk-archives core cron [[...]]
$ echo $BASH_VERSION
3.1.17(1)-release

I hope that is your problem.  A set but not exported LC_COLLATE
variable.  Definitely easy to miss.

Yep.  That is easy to miss.  Nope.  That's not the problem.
Apparently you are _REQUIRED_ to export LC_COLLATE with the value "C".
That's just wrong.  Was that really intended?  (I confess to having been using
ksh until recently, so if this is a long standing tradition, I
wouldn't have noticed.)

Thanks for your help - Bruce




reply via email to

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