Glenn Fowler wrote:
> On Sat, 03 Jan 2009 18:00:45 +0100 Roland Mainz wrote:
> > I've been trying to escape a '+' character in an extended regular
> > pattern but somehow fail to get it working:
> > -- snip --
> > $ ksh93 -c 'a="a+a" ; [[ "$a" == ~(E)a+a ]] && print
> > ok'
> > $ ksh93 -c 'a="a+a" ; [[ "$a" == ~(E)a\+a ]] && print
> > ok'
> > $ ksh93 -c 'a="a+a" ; [[ "$a" == ~(E)a\\+a ]] && print ok'
> > -- snip --
> 
> > Using ~(G) as workaround seems to work in this case but I need ~(E)
> > patterns in this case... ;-(
> 
> I think this may be a shell lexer issue
> as a workaround try
>         ~(E)a[+]a

Erm... don't you mean ~(E)a[\+]a ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to