Your message dated Sun, 7 Apr 2024 13:30:34 +0200 with message-id <[email protected]> and subject line Re: Bug#558239: bash: Fails when i process a simple shell script with regular expressions in Lenny but not in Etch has caused the Debian Bug report #558239, regarding bash: Fails when i process a simple shell script with regular expressions in Lenny but not in Etch to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 558239: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=558239 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: bash Version: 3.2-4 Severity: normal *** Please type your report below this line *** Whe i put this script in etch, it works, but in lenny don't work, the condition is true, but any lines are output. ¿i don't know what's the problem? if [[ foobarbletch =~ 'foo(bar)bl(.*)' ]] then echo The regex matches! echo $BASH_REMATCH -- outputs: foobarbletch echo ${BASH_REMATCH[1]} -- outputs: bar echo ${BASH_REMATCH[2]} -- outputs: etch fi -- System Information: Debian Release: 5.0.3 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores) Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages bash depends on: ii base-files 5lenny4 Debian base system miscellaneous f ii debianutils 2.30 Miscellaneous utilities specific t ii libc6 2.7-18 GNU C Library: Shared libraries ii libncurses5 5.7+20081213-1 shared libraries for terminal hand Versions of packages bash recommends: ii bash-completion 20080705 programmable completion for the ba Versions of packages bash suggests: pn bash-doc <none> (no description available) -- no debconf information
--- End Message ---
--- Begin Message ---Version: 5.0-6 On Fri, 27 Nov 2009 11:02:00 +0100 Ricardo F <[email protected]> wrote:Whe i put this script in etch, it works, but in lenny don't work, the condition is true, but any lines are output. ¿i don't know what's the problem? if [[ foobarbletch =~ 'foo(bar)bl(.*)' ]] then echo The regex matches! echo $BASH_REMATCH -- outputs: foobarbletch echo ${BASH_REMATCH[1]} -- outputs: bar echo ${BASH_REMATCH[2]} -- outputs: etch fiBash version 4 changed the way regexes are parsed inside [[. Using compat31 (whose support improved in later 4.x releases) allows you to use the older parsing logic.$ bash -c '[[ abcdef =~ "a(b)cd(.*)" ]] && echo ${BASH_REMATCH[*]}'$ bash -c 'shopt -s compat31; [[ abcdef =~ "a(b)cd(.*)" ]] && echo ${BASH_REMATCH[*]}'abcdef b ef Regards, -- Gioele Barabucci
--- End Message ---

