zsh-workers
 help / color / mirror / code / Atom feed
From: Vinnie Shelton  <shelton@icd.teradyne.com>
To: Zoltan Hidvegi <hzoli@cs.elte.hu>
Cc: pws@ifh.de (Peter Stephenson), zsh-workers@math.gatech.edu
Subject: Re: Bug Report: Env Vars and shell functions
Date: Wed, 10 Jul 1996 08:19:34 -0400	[thread overview]
Message-ID: <199607101219.IAA25984@spacely.icd.teradyne.com> (raw)
In-Reply-To: hzoli's message of Wed, 10 Jul 1996 04:33:47 +0200. <199607100233.EAA02866@hzoli.ppp.cs.elte.hu>

There's still a bug here; with 3.0-pre2 and only Peter's patch from
article 1573 and Zoltan's fix from article 1596, here's what happens:

: zsh-3.0-pre2/Solaris Wed 10 8:08; env - /pd/osbin/zsh -f
spacely% echo $ZSH_VERSION
3.0-pre2
spacely% function foo {
> echo "Function foo; FOO = $FOO"
> ./x
> }
spacely% cat ./x
#!/pd/osbin/zsh -f
 
print "This is $0; FOO = $FOO"
spacely% foo
Function foo; FOO = 
This is ./x; FOO = 
spacely% FOO=BAR foo
Function foo; FOO = BAR
This is ./x; FOO = BAR

# Okay so far, but...

spacely% foo
Function foo; FOO = 
This is ./x; FOO = BAR

FOO should be unset during the last running of ./x.

--vin




  reply	other threads:[~1996-07-10 12:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-08  3:49 Peter Bray
1996-07-08  8:58 ` Bart Schaefer
1996-07-08 12:49   ` Peter Stephenson
1996-07-10  2:33     ` Zoltan Hidvegi
1996-07-10 12:19       ` Vinnie Shelton [this message]
1996-07-10 13:45         ` Zoltan Hidvegi
1996-07-11 22:11           ` Anthony Heading
1996-07-12 12:17             ` Peter Stephenson
1996-07-12 15:27             ` Zoltan Hidvegi
1996-07-12 16:01               ` Anthony Heading
1996-07-12 17:18               ` Bart Schaefer
1996-07-12 17:43                 ` Zoltan Hidvegi

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=199607101219.IAA25984@spacely.icd.teradyne.com \
    --to=shelton@icd.teradyne.com \
    --cc=acs@world.std.com \
    --cc=hzoli@cs.elte.hu \
    --cc=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /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).