Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
typeset bug
- X-seq: zsh-workers 6229
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: typeset bug
- Date: Thu, 06 May 1999 17:50:26 +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxxxxxxx> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author