zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: PATCH: SHLVL not updated in environment
Date: Mon, 20 Sep 2004 07:19:39 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.61.0409200710120.3533@toltec.zanshin.com> (raw)
In-Reply-To: <200409201309.i8KD9QuP007197@news01.csr.com>

On Mon, 20 Sep 2004, Peter Stephenson wrote:

> % zsh
> % print $SHLVL
> 3
> % printenv SHLVL
> 2
> 
> This is a bug, right?  I'm not missing some extreme sublety?

That seems to be the way it worked before 4.2.1.

> It seems that SHLVL has to be exported for it to work, although the
> documentation doesn't explicitly indicate it always will be exported.

It *is* always exported, though:

schaefer[520] zsh -f
toltec% typeset -p SHLVL
typeset -i10 -x SHLVL=2

> Is this the right fix, rather than reversing the sense of the test?

I think it's right, but it begs the question:  What changed from 4.2.0
to make this fix necessary?


  reply	other threads:[~2004-09-20 14:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-20 13:09 Peter Stephenson
2004-09-20 14:19 ` Bart Schaefer [this message]
2004-09-20 14:30   ` Peter Stephenson

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=Pine.LNX.4.61.0409200710120.3533@toltec.zanshin.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.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).