diff options
author | Felix Rosencrantz <f_rosencrantz@users.sourceforge.net> | 2007-02-11 00:40:18 +0000 |
---|---|---|
committer | Felix Rosencrantz <f_rosencrantz@users.sourceforge.net> | 2007-02-11 00:40:18 +0000 |
commit | 9ed500a1cd6d31522675b313d52fc5ba624095c7 (patch) | |
tree | a41b1f0a24676954e3ecb51fd291dec9c7959e55 /Src | |
parent | 0a532a8f7fc5144aa8d92bda5b0d5d3acf38cc0c (diff) | |
download | zsh-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.c | 7 |
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'); } |