From owner-freebsd-bugs Sat Sep 28 9:36:16 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3F7637B401; Sat, 28 Sep 2002 09:36:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6A9843E86; Sat, 28 Sep 2002 09:36:15 -0700 (PDT) (envelope-from schweikh@FreeBSD.org) Received: from freefall.freebsd.org (schweikh@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8SGaFCo047141; Sat, 28 Sep 2002 09:36:15 -0700 (PDT) (envelope-from schweikh@freefall.freebsd.org) Received: (from schweikh@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8SGaEg5047137; Sat, 28 Sep 2002 09:36:14 -0700 (PDT) Date: Sat, 28 Sep 2002 09:36:14 -0700 (PDT) From: Jens Schweikhardt Message-Id: <200209281636.g8SGaEg5047137@freefall.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 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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