summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorherbert <herbert@gondor.apana.org.au>2004-08-04 20:46:34 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2005-09-26 18:33:02 +1000
commitce899f46dba33bd7840bc3162310bf989a8f5bc0 (patch)
tree1a8f77891240fde92e606a498e4e4aa2043d94b0 /src
parentInclude system.h. (diff)
downloaddash-ce899f46dba33bd7840bc3162310bf989a8f5bc0.tar.gz
dash-ce899f46dba33bd7840bc3162310bf989a8f5bc0.zip
Fixed cd - when OLDPWD is unset.
Diffstat (limited to 'src')
-rw-r--r--src/cd.c1
1 files changed, 0 insertions, 1 deletions
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;
2021-01-20Add all target to git.causal.agency MakefileJune McEnroe 2021-01-20Remove Lua supportJune McEnroe 2021-01-20Fix tests for diff spansJune McEnroe 2021-01-20Avoid matching ':' in make tagsJune McEnroe 2021-01-19Prefer tag matches not preceded by [[:alnum:]]June McEnroe 2021-01-19Escape \ and / in mtags search patternsJune McEnroe 2021-01-20Use mtags in source-filterJune McEnroe 2021-01-19Add mtags to generate tags for make and mdocJune McEnroe 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 2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe 2021-01-18Allow matching lexers using first input lineJune McEnroe