zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: 3.1.5: Fix `unset PWD OLDPWD` crash
@ 1999-02-06 22:30 Bart Schaefer
  0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 1999-02-06 22:30 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-02-06 22:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-06 22:30 PATCH: 3.1.5: Fix `unset PWD OLDPWD` crash Bart Schaefer

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).