From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Patrik Hagglund <patha@ida.liu.se>, zsh-workers@sunsite.auc.dk
Subject: PATCH: Re: 3.0.6 SEGV in unset PATH; export PATH
Date: Mon, 4 Oct 1999 14:59:22 +0000 [thread overview]
Message-ID: <991004145922.ZM3303@candle.brasslantern.com> (raw)
In-Reply-To: <199910040906.LAA06116@portofix.ida.liu.se>
On Oct 4, 11:06am, Patrik Hagglund wrote:
} Subject: 3.0.6 SEGV in unset PATH; export PATH
}
} (gdb) bt
} #0 0x4c3e4 in mkenvstr ()
Patch below. However, the behavior is not the same as 3.1.6 in this case:
unset PATH ; export PATH=/bin:/usr/bin
In 3.0.6 this sets $path to (/bin /usr/bin) and $PATH to /bin:/usr/bin, but
in 3.1.6 it sets only $PATH. Is it intentional that the tied parameter got
uncoupled that way?
Index: Src/builtin.c
===================================================================
@@ -2861,7 +2861,7 @@
pm->ct = auxlen;
if (PM_TYPE(pm->flags) != PM_ARRAY) {
if (pm->flags & PM_EXPORTED) {
- if (!pm->env)
+ if (!(pm->flags & PM_UNSET) && !pm->env)
pm->env = addenv(pname, value ? value : getsparam(pname));
} else if (pm->env) {
delenv(pm->env);
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
prev parent reply other threads:[~1999-10-04 15:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-04 9:06 Patrik Hagglund
1999-10-04 14:59 ` Bart Schaefer [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=991004145922.ZM3303@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=patha@ida.liu.se \
--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).