Fix a segfault in lash, hush, and cmdedit.  Each of these used
xgetcwd, but did not check the return for a NULL, and then continued
to call strlen on the NULL when the cwd had been removed from under it.
 -Erik
diff --git a/cmdedit.c b/cmdedit.c
index ce54500..ec99393 100644
--- a/cmdedit.c
+++ b/cmdedit.c
@@ -355,6 +355,10 @@
 	char  c;
 	char *pbuf;
 
+	if (!pwd_buf) {
+		pwd_buf=unknown;
+	}
+
 	while (*prmt_ptr) {
 		pbuf    = buf;
 		pbuf[1] = 0;