From mboxrd@z Thu Jan 1 00:00:00 1970 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes From: "Bart Schaefer" Message-Id: <990206143056.ZM31117@candle.brasslantern.com> Date: Sat, 6 Feb 1999 14:30:56 -0800 X-Mailer: Z-Mail (4.0b.820 20aug96) To: zsh-workers@sunsite.auc.dk Subject: PATCH: 3.1.5: Fix `unset PWD OLDPWD` crash MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailing-List: 5299 This applies to anything including and after plain ol' 3.1.5. Index: Src/builtin.c =================================================================== --- builtin.c 1999/02/05 17:53:24 1.21 +++ builtin.c 1999/02/06 22:28:13 @@ -643,7 +643,7 @@ pm = (Param) paramtab->getnode(paramtab, "OLDPWD"); if (!(pm->flags & PM_EXPORTED)) { pm->flags |= PM_EXPORTED; - pm->env = addenv("PWD", pwd); + pm->env = addenv("OLDPWD", oldpwd); } } -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com