bug-bash
[Top][All Lists]
Advanced

[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:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc12 Lightning/1.0b2pre Thunderbird/3.0.4

hi,
=~ 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.
regards.

-- 
  Levente                               "Si vis pacem para bellum!"



reply via email to

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