aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index f82a77258..a5929044b 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -2316,6 +2316,7 @@ cdcmd(int argc, char **argv)
2316 dest = bltinlookup(homestr); 2316 dest = bltinlookup(homestr);
2317 else if (dest[0] == '-' && dest[1] == '\0') { 2317 else if (dest[0] == '-' && dest[1] == '\0') {
2318 dest = bltinlookup("OLDPWD"); 2318 dest = bltinlookup("OLDPWD");
2319 if ( !dest ) goto out;
2319 flags |= CD_PRINT; 2320 flags |= CD_PRINT;
2320 goto step7; 2321 goto step7;
2321 } 2322 }