[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incompatible string substitution operations 2.05/3.00
From: |
Chet Ramey |
Subject: |
Re: Incompatible string substitution operations 2.05/3.00 |
Date: |
Tue, 30 Nov 2004 10:14:01 -0500 |
User-agent: |
Mozilla Thunderbird 0.8 (Macintosh/20040913) |
pm@ardendo.se wrote:
Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux
Compiler: gcc -I/usr/src/packages/BUILD/bash-2.05b
-L/usr/src/packages/BUILD/bash-2.05b/../readline-4.3
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586'
-DCONF_OSTYPE='linux' -DCONF_MACHTYPE='i586-suse-linux' -DCONF_VENDOR='suse'
-DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -O2 -march=i586
-mcpu=i686 -fmessage-length=0 -Wall -D_GNU_SOURCE -Wall -pipe -g
-fbranch-probabilities
uname output: Linux foo 2.6.5-7.108-smp #1 SMP Wed Aug 25 13:34:40 UTC 2004
i686 i686 i386 GNU/Linux
Machine Type: i586-suse-linux
Bash Version: 2.05b
Patch Level: 0
Release Status: release
Description:
The string substitution operations seem to differ between 2.05 and 3.00
of BASH, with respect to the pattern quoting.
See example below.
Is it a bug?
It was a bug fixed in bash-3.0.
I have not found it mentioned in any release notes - have I missed it
ir is it missing?
You missed it:
p. The pattern substitution code no longer performs quote removal on
the pattern before trying to match it, as the pattern removal
functions do.
This means that the pattern substitution and pattern removal expansions
treat the pattern identically.
See http://lists.gnu.org/archive/html/bug-bash/2004-09/msg00058.html
and http://lists.gnu.org/archive/html/bug-bash/2004-09/msg00057.html
for previous discussion of this issue.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@po.cwru.edu
http://tiswww.tis.cwru.edu/~chet/