[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regexp matching broken in bash-3.2.x?
From: |
Pierre Gaston |
Subject: |
Re: regexp matching broken in bash-3.2.x? |
Date: |
Sat, 27 Oct 2007 17:38:20 +0300 |
On 10/27/07, Bernd Eggink <monoped@sudrala.de> wrote:
> Pavel Gorshkov schrieb:
>
> > Description:
> > Regexp matching seems to be broken since 3.2.0.
> > Repeat-By:
> > The following used to work in bash-3.1:
> > $ [[ test =~ 't.*t' ]]; echo $?
> > 1
>
> It works without the quotes. Looks like they are taken literally instead of
> being removed. I, too, f.think it's a bug, as according to the docs, quote
> removal should be performed on the words between [[ and ]].
The behavior changed with 3.2, from the NEWS file:
" Quoting the string argument to the [[ command's =~ operator now forces
string matching, as with the other pattern-matching operators."
Quoting removal is performed but [[ is not a normal command (it's a
shell keyword)