* typeset bug
@ 1999-05-06 15:50 Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 1999-05-06 15:50 UTC (permalink / raw)
To: Zsh hackers list
What the heck's going on here?
% cat tst
test_var=value
foo() { unset test_var; }
foo
% . ./tst
% print ${+test_var}
0
% typeset -m 'test_*'
% print ${+test_var}
1
Somehow the typeset -m is recovering test_var, which is wrong. What's even
worse, it shouldn't even be recoverable; since it was created in global
scope, it should simply be removed from the parameter table. I hate
parameters, they're always doing things like this.
--
Peter Stephenson <pws@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-05-06 16:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-06 15:50 typeset bug Peter Stephenson
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).