Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh breaks configure scripts
- X-seq: zsh-workers 16756
- From: Eric Norum <eric.norum@xxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: zsh breaks configure scripts
- Date: Mon, 4 Mar 2002 08:51:51 -0600
- Cc: fink-devel@xxxxxxxxxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Apple uses zsh as /bin/sh on Mac OS X. Unfortunately zsh has a
`feature' that breaks many autoconf configure scripts. The scripts
contain lines like:
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && .......
The problem is that the zsh cd command insists on printing the directory!
The offending code is in cd_new_pwd() in Src/builtins.c around line 1047:
if (unset(PUSHDSILENT) && func != BIN_CD && isset(INTERACTIVE))
printdirstack();
else if (doprintdir) {
fprintdir(pwd, stdout);
putchar('\n');
}
I suggest that the fprintdir/putchar be called only in interactive
shells:
if (unset(PUSHDSILENT) && func != BIN_CD && isset(INTERACTIVE))
printdirstack();
else if (doprintdir && isset(INTERACTIVE)) {
fprintdir(pwd, stdout);
putchar('\n');
}
--
Eric Norum <eric.norum@xxxxxxxx>
Department of Electrical Engineering
University of Saskatchewan
Saskatoon, Canada.
Phone: (306) 966-5394 FAX: (306) 966-5407
Messages sorted by:
Reverse Date,
Date,
Thread,
Author