From: Zefram <zefram@dcs.warwick.ac.uk>
To: zsh-workers@math.gatech.edu
Subject: special parameter fix
Date: Tue, 1 Apr 1997 01:06:40 +0100 (BST) [thread overview]
Message-ID: <17381.199704010006@stone.dcs.warwick.ac.uk> (raw)
-----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-----
reply other threads:[~1997-04-01 0:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17381.199704010006@stone.dcs.warwick.ac.uk \
--to=zefram@dcs.warwick.ac.uk \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).