Date: Sat, 28 Sep 2002 09:36:14 -0700 (PDT) From: Jens Schweikhardt <schweikh@FreeBSD.org> To: paul@teBokkel.com, schweikh@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: misc/43439: setting CDPATH causes compiling ports and installworld to fail Message-ID: <200209281636.g8SGaEg5047137@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Synopsis: setting CDPATH causes compiling ports and installworld to fail State-Changed-From-To: open->feedback State-Changed-By: schweikh State-Changed-When: Sat Sep 28 09:13:27 PDT 2002 State-Changed-Why: Two questions: - why are you *exporting* a CDPATH? It's good for login shells and you simply assign to it in your .profile. You'd mess up almost any /bin/sh script you run. - why don't you put dot first in your CDPATH to make the CDPATH mechanism for all shells alike? If CDPATH is set and does not contain dot, /bin/sh will not look in dot (while bash, tcsh and zsh apparently do). The problem is that *un*setting shell variables in makefiles is awkward (you'd have to prepend each command with "unset CDPATH"). One workaround is setting CDPATH=. from some makefile. However I think you should fix your CDPATH as described. Maybe it's a good idea to change the CDPATH mechanism in /bin/sh, IEEE Std 1003.1-2001 does not describe CDPATH, so we're free to align it with the other shells. http://www.freebsd.org/cgi/query-pr.cgi?pr=43439 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209281636.g8SGaEg5047137>