Re: incompatibility in regex

2012-03-28 Thread Greg Wooledge
On Mon, Oct 10, 2011 at 08:06:17PM +0200, Peter Schreiber wrote: > 3.1.17(1)-release: > > -> [[ a =~ a|b ]] && echo true > -bash: syntax error in conditional expression: unexpected token `|' > > -> [[ a =~ a\|b ]] && echo true # that one works in version 3 > true > > ==

incompatibility in regex

2012-03-28 Thread Peter Schreiber
Hi, have experienced the following: 3.1.17(1)-release: -> [[ a =~ a|b ]] && echo true -bash: syntax error in conditional expression: unexpected token `|' -> [[ a =~ a\|b ]] && echo true # that one works in version 3 true === 4