Re: =~ no longer working in bash-4.1

2010-06-08 Thread Andreas Schwab
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

Re: =~ no longer working in bash-4.1

2010-06-08 Thread Greg Wooledge
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

Re: =~ no longer working in bash-4.1

2010-06-08 Thread Roman Rakus
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

Re: =~ no longer working in bash-4.1

2010-06-08 Thread Pierre Gaston
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

=~ no longer working in bash-4.1

2010-06-08 Thread Farkas Levente
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