about summary refs log tree commit diff
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
parent0a532a8f7fc5144aa8d92bda5b0d5d3acf38cc0c (diff)
downloadzsh-9ed500a1cd6d31522675b313d52fc5ba624095c7.tar.gz
zsh-9ed500a1cd6d31522675b313d52fc5ba624095c7.tar.xz
zsh-9ed500a1cd6d31522675b313d52fc5ba624095c7.zip
23164: Silence popd when PUSHD_SILENT is set.
-rw-r--r--ChangeLog4
-rw-r--r--Src/builtin.c7
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b4304be4d..0bf106413 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-02-10  Felix Rosencrantz <f.rosencrantz@gmail.com>
+	* 23164: Src/builtin.c when PUSHD_SILENT is set, don't print anything
+	from popd/pushd.
+
 2007-02-10  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* 23162: Src/subst.c, D07multibyte.ztst: ${(#)x} didn't
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');
 	}