in f13 =~ no longer working in bash
Sergeev Pavel
Vourhey at yandex.ru
Tue Jun 8 12:34:16 UTC 2010
08.06.10, 16:14, "Farkas Levente" <lfarkas at lfarkas.org>:
> 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 fedora-12, but it gives
> "outside" in fedora-13.
> 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.
>
>
Hi,
[Vourhey at localhost ~]$ shopt -s compat31
[Vourhey at localhost ~]$ if [[ "abc" =~ "abc.*" ]]; then echo inside; else echo outside; fi
inside
Regards,
More information about the devel
mailing list