Problem with Bash

Anthony David adavid at deetya.gov.au
Wed Dec 12 16:49:50 EST 2001


> X-Authentication-Warning: albatross.anu.edu.au: saul owned process doing -bs
> From: Saul Thurrowgood <saul at cvs.anu.edu.au>
> X-X-Sender:  <saul at albatross.anu.edu.au>
> Cc: <linux at samba.org>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> Sender: linux-admin at lists.samba.org
> X-BeenThere: linux at lists.samba.org
> X-Mailman-Version: 2.0.6
> Precedence: bulk
> List-Help: <mailto:linux-request at lists.samba.org?subject=help>
> List-Post: <mailto:linux at lists.samba.org>
> List-Subscribe: <http://lists.samba.org/mailman/listinfo/linux>,
> 	<mailto:linux-request at lists.samba.org?subject=subscribe>
> List-Id: Canberra Linux User Group <linux.lists.samba.org>
> List-Unsubscribe: <http://lists.samba.org/mailman/listinfo/linux>,
> 	<mailto:linux-request at lists.samba.org?subject=unsubscribe>
> List-Archive: <http://lists.samba.org/pipermail/linux/>
> Date: Wed, 12 Dec 2001 15:44:51 +1100 (EST)
> 
> Works fine for me.
> $ bash --version
> GNU bash, version 2.05.0(1)-release (i386-slackware-linux-gnu)
> 
> Saul.
> 
> On Wed, 12 Dec 2001, Chris Delfs wrote:
> 
> > I feel stupid asking this but I can't see why bash (RH 7.2) is ignoring case
> > in regular expressions.  For example
> >
> > ~/tmp 38>touch A B C D a b c d
> > ~/tmp 39>ls
> > a  A  b  B  c  C  d  D
> > ~/tmp 40>ls [a-z]*
> > a  A  b  B  c  C  d  D
> 
> 

The problem as I think it is being reported is that bash 2.0.3 ref manual says
these two things:-


After word splitting, unless the `-f' option has been set (see section The Set Builtin), Bash scans each word for the characters `*', `?', `(', and `['. If one of these characters appears, then the word is regarded as a pattern, and replaced with an alphabetically sorted list of file names matching the pattern.

...

nocaseglob
If set, Bash matches filenames in a case-insensitive fashion when performing
 filename expansion.

----------------

It looks like a doco or implemetation bug to me.

-- 
Anthony David

Gambling(n): A discretionary tax on those asleep during high school maths
http://adavid.com.au/
0xA72CE1ED fingerprint = EA1E C69E FE59 BBE1 AA4B  F354 BD09 9765 A72C E1ED




More information about the linux mailing list