summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--src/cd.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5966d44..180755e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-08-04  Herbert Xu <herbert@gondor.apana.org.au>
+
+	* Fixed cd - when OLDPWD is unset in src/cd.c.
+
 2004-07-09  Herbert Xu <herbert@gondor.apana.org.au>
 
 	* Include system.h (Gerrit Pape):
diff --git a/src/cd.c b/src/cd.c
index 9f84452..1a7aaee 100644
--- a/src/cd.c
+++ b/src/cd.c
@@ -114,7 +114,6 @@ cdcmd(int argc, char **argv)
 	else if (dest[0] == '-' && dest[1] == '\0') {
 		dest = bltinlookup("OLDPWD");
 		flags |= CD_PRINT;
-		goto step7;
 	}
 	if (!dest)
 		dest = nullstr;
lass='nohover-highlight'> 2021-01-19Map tags to IDs using only [[:alnum:]-._]June McEnroe 2021-01-19Don't use a pager if reading standard inputJune McEnroe 2021-01-19Support BSD make syntax and match *.amJune McEnroe These don't really go together, but... 2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe Otherwise it ends up going into Shell state. 2021-01-18Allow matching lexers using first input lineJune McEnroe