[rhelv6-beta-list] =~ no longer working in bash

Farkas Levente lfarkas at lfarkas.org
Tue Jun 8 12:02:59 UTC 2010


hi,
=~ no longer working in bash-4.1.2-2.el6. just try this little line:
-----------------------------
if [[ "abc" =~ "abc.*" ]]; then echo inside; else echo outside; fi
-----------------------------
this give "inside" on rhel-5, and up to fedora-12, but it gives
"outside" in rhel-6 beta.
imho it's a serious error since all shell script will fail which use =~ :-(

-- 
  Levente                               "Si vis pacem para bellum!"




More information about the rhelv6-beta-list mailing list