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 <[EMAIL PROTECTED]>
Department of Electrical Engineering
University of Saskatchewan
Saskatoon, Canada.
Phone: (306) 966-5394 FAX: (306) 966-5407
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel