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

PATCH: another glob fix



-----BEGIN PGP SIGNED MESSAGE-----

*This* is why matchpat() was adding an extra layer of parens.  Don't use
3.1.2-zefram4 to run configure scripts.

 *** Src/glob.c	1998/04/26 15:56:37	1.47
 --- Src/glob.c	1998/04/26 19:29:04
 ***************
 *** 706,717 ****
   	    c3 = parsecompsw(gflag);
   	    if (!c3)
   		return NULL;
 ! 	} else {
 ! 	    /* mark if end of pattern or path component */
 ! 	    if (!*pptr || *pptr == '/')
 ! 		c2->stat |= C_LAST;
   	    c3 = NULL;
 ! 	}
   	c2->str = dupstring("");
   	c2->left = c1;
   	c2->right = c3;
 --- 706,716 ----
   	    c3 = parsecompsw(gflag);
   	    if (!c3)
   		return NULL;
 ! 	} else
   	    c3 = NULL;
 ! 	/* mark if end of pattern or path component */
 ! 	if (!*pptr || *pptr == '/')
 ! 	    c1->stat |= c2->stat = C_LAST;
   	c2->str = dupstring("");
   	c2->left = c1;
   	c2->right = c3;

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: ascii

iQEVAwUBNUOMRpmk9GeOHh7BAQGq6gf/fTv0pycEa8VmTeo6c2SmAVfGIl8szUtO
Nb6yPaP1pnL41jhozZo/9hywC3nz/xYpJq3YJ8EuRd4aCmfC8jUgntsQg5bHH0pE
eNKb8mHxeRFN1z3alYGmOI7Jg61niRWxfXIVLaq1mSWpdmmjlzaWZFrzgnaNRG9S
qr4dwPEU8i6mH3OR6FXeQ32Z68lnThaDkUH0ewRFelGqgcdX70fg4yACANr8OwuO
1d1eJx99qaCVo1KstuhN+snWf/LnCvydEM31d4EznWlyK1E51gnBqqQ45R8YmpAJ
kfXYU4OQwv/WVWsokzA8uun8AE/VpZaLVm2CA4KxW8JUvKbMNmo0qA==
=/uy8
-----END PGP SIGNATURE-----



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