I think this may be a shell lexer issue
as a workaround try
        ~(E)a[+]a

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... ;-(

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to