Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: 3.1.5: Fix `unset PWD OLDPWD` crash
- X-seq: zsh-workers 5299
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: 3.1.5: Fix `unset PWD OLDPWD` crash
- Date: Sat, 6 Feb 1999 14:30:56 -0800
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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