[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

=~ no longer working in bash-4.1

From: Farkas Levente
Subject: =~ no longer working in bash-4.1
Date: Tue, 08 Jun 2010 14:23:48 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100430 Fedora/3.0.4-2.fc12 Lightning/1.0b2pre Thunderbird/3.0.4

=~ no longer working in bash. just try this little line:
if [[ "abc" =~ "abc.*" ]]; then echo inside; else echo outside; fi
this give "inside" up to 4.0, but it gives "outside" in 4.1.
imho it's a serious changes since all shell script will fail which use
=~ :-(
is there any reason for this? or any quick fixes?
thanks in advance.

  Levente                               "Si vis pacem para bellum!"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]