> >> Bash Version: 3.2
> >> Patch Level: 0
> >> Release Status: release
Install the patches. One (patch 3) deals with this issue. The following
transcript shows the difference between the patched and unpatched versions
of bash-3.2.
$ cat x16
DOG="Dog name - 01 - Wiggles"
if [[ $DOG =~ ([[:alpha:][:blank:]]*)-\ ([[:digit:]]*)\ -\ (.*)$ ]]
then
echo Dog ${BASH_REMATCH[2]} is ${BASH_REMATCH[3]}
fi
$ ../bash-3.2-patched/bash --version
GNU bash, version 3.2.9(7)-release (powerpc-apple-darwin8.7.0)
Copyright (C) 2005 Free Software Foundation, Inc.
$ ../bash-3.2-patched/bash ./x16
Dog 01 is Wiggles
$ ../bash-3.2/bash ./x16
./x16: line 2: unexpected argument `(' to conditional binary operator
./x16: line 2: syntax error near `(['
./x16: line 2: `if [[ $DOG =~ ([[:alpha:][:blank:]]*)-\ ([[:digit:]]*)\ -\
(.*)$ ]]'
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong.
Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://tiswww.tis.case.edu/~chet/
_______________________________________________
Bug-bash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-bash