Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: 3.1.5: Fix `unset PWD OLDPWD` crash



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



Messages sorted by: Reverse Date, Date, Thread, Author