Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: pws-??: typeset -g & more wretched typeset scoping bugs
- X-seq: zsh-workers 6853
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: pws-??: typeset -g & more wretched typeset scoping bugs
- Date: Fri, 25 Jun 1999 15:06:24 +0200
- In-reply-to: "Peter Stephenson"'s message of "Fri, 25 Jun 1999 14:35:21 DFT." <9906251235.AA17296@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Peter Stephenson wrote:
> (Please God, let this be correct this time.)
Except that it now totally fails to list anything.
--- Src/builtin.c.ts2 Fri Jun 25 14:15:03 1999
+++ Src/builtin.c Fri Jun 25 15:01:06 1999
@@ -1527,6 +1527,7 @@
}
if (usepm) {
+ on &= ~PM_LOCAL;
if (!on && !roff && !value) {
paramtab->printnode((HashNode)pm, 0);
return pm;
@@ -1656,9 +1657,6 @@
off |= bit;
roff = off;
- if (!ops['g'])
- on |= PM_LOCAL;
-
/* Sanity checks on the options. Remove conficting options. */
if (on & PM_INTEGER)
off |= PM_RIGHT_B | PM_LEFT | PM_RIGHT_Z | PM_UPPER | PM_ARRAY;
@@ -1688,6 +1686,9 @@
scanhashtable(paramtab, 1, on|roff, 0, paramtab->printnode, printflags);
return 0;
}
+
+ if (!ops['g'])
+ on |= PM_LOCAL;
if (on & PM_TIED) {
Param apm;
--
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