Farkas Levente writes:
> hi,
> =~ no longer working in bash. just try this little line:
> -
> if [[ "abc" =~ "abc.*" ]]; then echo inside; else echo outside; fi
> -
See question E14 in the Bash FAQ.
Andreas.
--
Andreas Schwab, sch...@lin
On Tue, Jun 08, 2010 at 02:23:48PM +0200, Farkas Levente wrote:
> -
> if [[ "abc" =~ "abc.*" ]]; then echo inside; else echo outside; fi
> -
> this give "inside" up to 4.0, but it gives "outside" in 4.1.
If you want the .* to be taken as a re
On 06/08/2010 02:23 PM, Farkas Levente wrote:
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.
im
On Tue, Jun 8, 2010 at 3:23 PM, Farkas Levente wrote:
> 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
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