zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: PATCH: pws-??: typeset -g & more wretched typeset scoping bugs
Date: Fri, 25 Jun 1999 15:06:24 +0200	[thread overview]
Message-ID: <9906251306.AA34377@ibmth.df.unipi.it> (raw)
In-Reply-To: "Peter Stephenson"'s message of "Fri, 25 Jun 1999 14:35:21 DFT." <9906251235.AA17296@ibmth.df.unipi.it>

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@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


      reply	other threads:[~1999-06-25 13:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-25 12:35 Peter Stephenson
1999-06-25 13:06 ` Peter Stephenson [this message]

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=9906251306.AA34377@ibmth.df.unipi.it \
    --to=pws@ibmth.df.unipi.it \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).