a libast::regex bug
fixed in the next release
thanks

On Tue, 17 Apr 2012 11:51:10 +0800 Clark J. Wang wrote:
> --===============1047190580==
> Content-Type: multipart/alternative; boundary=20cf3026714ca5357704bdd7da42

> --20cf3026714ca5357704bdd7da42
> Content-Type: text/plain; charset=UTF-8

> On Tue, Apr 17, 2012 at 11:42, Clark J. Wang <[email protected]> wrote:

> > See following example:
> >
> > $ echo ${.sh.version}
> > Version jM 93u 2011-02-08
> > $ [[ FOO == ~(E).* ]] && echo yes || echo no
> > yes
> > $ [[ FOO == ~(E:.*) ]] && echo yes || echo no
> > no
> > $
> >

> But this works:

> $ [[ foo == ~(E:foo) ]] && echo yes || echo no
> yes
> $

> >
> > But ~(i)foo and ~(i:foo) are the same:
> >
> > $ [[ FOO == ~(i)foo ]] && echo yes || echo no
> > yes
> > $ [[ FOO == ~(i:foo) ]] && echo yes || echo no
> > yes
> > $
> >

> --20cf3026714ca5357704bdd7da42
> Content-Type: text/html; charset=UTF-8
> Content-Transfer-Encoding: quoted-printable

> <font><font face=3D"arial,helvetica,sans-serif"></font></font>On Tue, Apr 1=
> 7, 2012 at 11:42, Clark J. Wang <span dir=3D"ltr">&lt;<a href=3D"mailto:dea=
> [email protected]">[email protected]</a>&gt;</span> wrote:<br><div class=3D"=
> gmail_quote">

> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
> x #ccc solid;padding-left:1ex"><font><font face=3D"arial,helvetica,sans-ser=
> if">See following example:<br><br>$ echo ${.sh.version}<br>Version jM 93u 2=
> 011-02-08<br>

> $ [[ FOO =3D=3D ~(E).* ]] &amp;&amp; echo yes || echo no<br>yes<br>$ [[ FOO=
>  =3D=3D ~(E:.*) ]] &amp;&amp; echo yes || echo no<br>
> no<br>$<br></font></font></blockquote><div><br>But this works:<br><br>$ [[ =
> foo =3D=3D ~(E:foo) ]] &amp;&amp; echo yes || echo no<br>yes<br>$ <br></div=
> ><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex;border=
> -left:1px solid rgb(204,204,204);padding-left:1ex">

> <font><font face=3D"arial,helvetica,sans-serif"><br>But ~(i)foo and ~(i:foo=
> ) are the same:<br><br>$ [[ FOO =3D=3D ~(i)foo ]] &amp;&amp; echo yes || ec=
> ho no<br>yes<br>$ [[ FOO =3D=3D ~(i:foo) ]] &amp;&amp; echo yes || echo no<=
> br>yes<br>

> $<br></font></font>
> </blockquote></div><br>

> --20cf3026714ca5357704bdd7da42--

> --===============1047190580==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline

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

> --===============1047190580==--

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

Reply via email to