Re: in f13 =~ no longer working in bash

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

 



08.06.10, 16:14, "Farkas Levente" <lfarkas@xxxxxxxxxxx>:

> 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@localhost ~]$ shopt -s compat31
[Vourhey@localhost ~]$ if [[ "abc" =~ "abc.*" ]]; then echo inside; else echo outside; fi
inside

Regards,
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux