[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Pattern matching only sometimes case-(in)sensitive in character classes
From: |
matthewg |
Subject: |
Pattern matching only sometimes case-(in)sensitive in character classes |
Date: |
Mon, 18 Mar 2002 17:28:04 -0500 |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I.
-I/home/doko/packages/bash/bash-2.05a
-I/home/doko/packages/bash/bash-2.05a/include
-I/home/doko/packages/bash/bash-2.05a/lib -g -O2
uname output: Linux allevil 2.4.17-xfs #15 Mon Feb 11 05:56:30 EST 2002 i686
unknown
Machine Type: i386-pc-linux-gnu
Bash Version: 2.05a
Patch Level: 0
Release Status: release
Description:
Pattern matching is only sometimes case-(in)sensitive in character
classes.
(Which should it be? The documentation - "any character that sorts
between
those two characters ['a' and 'b' for '[a-b]'], inclusive, using the
current
locale's collating sequence and character set, is matched." - is
somewhat
difficult to understand.)
For example, [a-b] will not match B, but [b-c] will.
Repeat-By:
touch B
ls [a-b] #Yields "ls: [a-b]: No such file or directory"
ls [b-c] #Yields "B"
- Pattern matching only sometimes case-(in)sensitive in character classes,
matthewg <=