mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-03 08:11:03 +02:00
16759: Src/builtin.c: from Eric Norum <eric.norum@usask.ca>:
cd prints output whenever the target directory is not obvious to the user. This confuses scripts, so restrict it to interactive mode.
This commit is contained in:
parent
e595143c42
commit
d9bc2d314e
2 changed files with 14 additions and 5 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2002-03-04 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 16759: Src/builtin.c: from Eric Norum <eric.norum@usask.ca>:
|
||||
cd prints output whenever the target directory is not obvious
|
||||
to the user. This confuses scripts, so restrict it to
|
||||
interactive mode.
|
||||
|
||||
2002-02-19 Geoff Wing <gcw@zsh.org>
|
||||
|
||||
* 16635: Src/Zle/zle_refresh.c: make sure we display lists in
|
||||
|
|
|
|||
|
|
@ -1042,11 +1042,13 @@ cd_new_pwd(int func, LinkNode dir)
|
|||
pwd = new_pwd;
|
||||
set_pwd_env();
|
||||
|
||||
if (unset(PUSHDSILENT) && func != BIN_CD && isset(INTERACTIVE))
|
||||
printdirstack();
|
||||
else if (doprintdir) {
|
||||
fprintdir(pwd, stdout);
|
||||
putchar('\n');
|
||||
if (isset(INTERACTIVE)) {
|
||||
if (unset(PUSHDSILENT) && func != BIN_CD)
|
||||
printdirstack();
|
||||
else if (doprintdir) {
|
||||
fprintdir(pwd, stdout);
|
||||
putchar('\n');
|
||||
}
|
||||
}
|
||||
|
||||
/* execute the chpwd function */
|
||||
|
|
|
|||
Loading…
Reference in a new issue