1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-01 20:11:06 +01:00

23164: Silence popd when PUSHD_SILENT is set.

This commit is contained in:
Felix Rosencrantz 2007-02-11 00:40:18 +00:00
parent 0a532a8f7f
commit 9ed500a1cd
2 changed files with 8 additions and 3 deletions

View file

@ -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

View file

@ -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');
}