[Virtual-pkg-base-maintainers] Bug#558119: base: Fails when i process a simple shell script with regular expressions in Lenny but not in Etch.

Ricardo F rikr at esdebian.org
Thu Nov 26 14:36:26 UTC 2009


Package: base
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/virtual-pkg-base-maintainers/attachments/20091126/d8893de8/attachment.htm>


More information about the Virtual-pkg-base-maintainers mailing list