Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: closures: #3



Bruce Stephens wrote:
> pws@xxxxxx said:
> >   	if (*pptr == Star && pptr[1] && ! 	    (unset(EXTENDEDGLOB) || 
> > !(gflag & GF_TOPLEV) || ! 	     pptr[1] != Tilde || !pptr[2] || 
> > pptr[2] == Bar || 
> 
> Where did gflag and GF_TOPLEV come from?  I think the patch is
> missing a file or two

They were in a previous patch from me, which fixed the bug that a ~ in
a top-level pattern prevented the pattern before it from being marked
as the last portion of a match.  I think the patch is in some recent
versions (certainly seems to be in 3.0.4), but I couldn't tell you
since when.  Without that, just omit this hunk: all that will happen
is that the (*~foo)bar bug won't be fixed, since it relies on the
GF_TOPLEV mechanism.

-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, Platanenallee 6, 15738 Zeuthen, Germany.



Messages sorted by: Reverse Date, Date, Thread, Author