Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
special parameter fix
- X-seq: zsh-workers 3059
- From: Zefram <zefram@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: special parameter fix
- Date: Tue, 1 Apr 1997 01:06:40 +0100 (BST)
-----BEGIN PGP SIGNED MESSAGE-----
My patch 3048 contained a small bug, in that its method of checking for
an attempt to change the type of a special parameter is ineffective.
The commands
typeset -R UID
echo $UID
will cause a crash without this patch.
-zefram
*** Src/builtin.c 1997/03/30 00:49:13 1.74
--- Src/builtin.c 1997/03/31 04:01:22
***************
*** 1415,1421 ****
continue;
}
if((pm->flags & PM_SPECIAL) &&
! PM_TYPE(on) && PM_TYPE(on) != PM_TYPE(pm->flags)) {
zerrnam(name, "%s: cannot change type of a special parameter",
pm->nam, 0);
returnval = 1;
--- 1415,1421 ----
continue;
}
if((pm->flags & PM_SPECIAL) &&
! PM_TYPE((pm->flags | on) & ~off) != PM_TYPE(pm->flags)) {
zerrnam(name, "%s: cannot change type of a special parameter",
pm->nam, 0);
returnval = 1;
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: ascii
iQCVAwUBMz85T3D/+HJTpU/hAQHHdgP9G+Nbu1x6Ri0EH4ARUYfSr/FqNiKicnbp
HouaWVf1ken7j8ziTEve3Sc7aBLu754rPjm8THCZpJRNCrKAAhBPs/W/QCKqmFLI
Y+qlEGGq3XS0nTZCA1smLNmhTrQJpEPEsAm8zHY6McghQHn/V5cFC7LNP/Tb+X/x
OWytJ7IscO4=
=OcAb
-----END PGP SIGNATURE-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author