zsh-workers
 help / color / mirror / code / Atom feed
* zsh breaks configure scripts
@ 2002-03-04 14:51 Eric Norum
  2002-03-04 14:58 ` [Fink-devel] " Peter O'Gorman
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Eric Norum @ 2002-03-04 14:51 UTC (permalink / raw)
  To: zsh-workers; +Cc: fink-devel

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@usask.ca>
Department of Electrical Engineering
University of Saskatchewan
Saskatoon, Canada.
Phone: (306) 966-5394   FAX:   (306) 966-5407


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-03-04 17:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-04 14:51 zsh breaks configure scripts Eric Norum
2002-03-04 14:58 ` [Fink-devel] " Peter O'Gorman
2002-03-04 17:19   ` Bart Schaefer
2002-03-04 15:19 ` Borsenkow Andrej
2002-03-04 15:26 ` Peter Stephenson
2002-03-04 15:42 ` Alexandre Duret-Lutz

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).