[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quoted regexp not matching string
From: |
Chet Ramey |
Subject: |
Re: Quoted regexp not matching string |
Date: |
Fri, 08 Feb 2008 23:13:37 -0500 |
User-agent: |
Thunderbird 2.0.0.9 (Macintosh/20071031) |
pgquiles@elpauer.org wrote:
Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H -I. -I../bash -I../bash/include -I../bash/lib -g -O2 -Wall
uname output: Linux pravetz 2.6.22-14-generic #1 SMP Fri Feb 1 04:59:50 UTC
2008 i686 GNU/Linux
Machine Type: i486-pc-linux-gnu
Bash Version: 3.2
Patch Level: 33
Release Status: release
Description:
If a regular expression is quoted, it won't match the string. This is a change in behavior from
3.1.0 to 3.2.0.
Yes, it is, documented in the change log and manuals. A quoted rhs is
matched as a string, like other conditional command operators. The
issue is covered in question E14 of the most recent Bash FAQ.
(And, believe me, this has been discussed before.)
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/