about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorFelix Rosencrantz <f_rosencrantz@users.sourceforge.net>2007-02-11 00:40:18 +0000
committerFelix Rosencrantz <f_rosencrantz@users.sourceforge.net>2007-02-11 00:40:18 +0000
commit9ed500a1cd6d31522675b313d52fc5ba624095c7 (patch)
treea41b1f0a24676954e3ecb51fd291dec9c7959e55 /Src
parent0a532a8f7fc5144aa8d92bda5b0d5d3acf38cc0c (diff)
downloadzsh-9ed500a1cd6d31522675b313d52fc5ba624095c7.tar.gz
zsh-9ed500a1cd6d31522675b313d52fc5ba624095c7.tar.xz
zsh-9ed500a1cd6d31522675b313d52fc5ba624095c7.zip
23164: Silence popd when PUSHD_SILENT is set.
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index cec211e67..78e4d4b2a 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -1123,9 +1123,10 @@ cd_new_pwd(int func, LinkNode dir)
     set_pwd_env();
 
     if (isset(INTERACTIVE)) {
-	if (unset(PUSHDSILENT) && func != BIN_CD)
-	    printdirstack();
-	else if (doprintdir) {
+	if (func != BIN_CD) {
+            if (unset(PUSHDSILENT))
+	        printdirstack();
+        } else if (doprintdir) {
 	    fprintdir(pwd, stdout);
 	    putchar('\n');
 	}