From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3280 invoked from network); 4 Oct 1999 15:00:34 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Oct 1999 15:00:34 -0000 Received: (qmail 25989 invoked by alias); 4 Oct 1999 15:00:04 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8128 Received: (qmail 25965 invoked from network); 4 Oct 1999 15:00:02 -0000 From: "Bart Schaefer" Message-Id: <991004145922.ZM3303@candle.brasslantern.com> Date: Mon, 4 Oct 1999 14:59:22 +0000 In-Reply-To: <199910040906.LAA06116@portofix.ida.liu.se> Comments: In reply to Patrik Hagglund "3.0.6 SEGV in unset PATH; export PATH" (Oct 4, 11:06am) References: <199910040906.LAA06116@portofix.ida.liu.se> X-Mailer: Z-Mail (5.0.0 30July97) To: Patrik Hagglund , zsh-workers@sunsite.auc.dk Subject: PATCH: Re: 3.0.6 SEGV in unset PATH; export PATH MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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