From owner-freebsd-current Thu Jun 27 14:55:09 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA29663 for current-outgoing; Thu, 27 Jun 1996 14:55:09 -0700 (PDT) Received: from time.cdrom.com (time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA29633 for ; Thu, 27 Jun 1996 14:55:00 -0700 (PDT) Received: from time.cdrom.com (localhost [127.0.0.1]) by time.cdrom.com (8.7.5/8.6.9) with ESMTP id OAA07257; Thu, 27 Jun 1996 14:53:52 -0700 (PDT) To: Scott Blachowicz cc: current@FreeBSD.org Subject: Re: Building inside of /usr/src? In-reply-to: Your message of "Thu, 27 Jun 1996 13:44:09 PDT." Date: Thu, 27 Jun 1996 14:53:52 -0700 Message-ID: <7251.835912432@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > (totum)(root) # cd /usr/src/lib/libc > (totum)(root) # unsetenv PWD > (totum)(root) # make cleandir > (totum)(root) # make obj > /usr/obj/a/src/lib/libc created for /a/src/lib/libc AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRH HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Ahem. Sorry, I feel better now! :-) Check this out in make: if ((pwd = getenv("PWD")) != NULL) { if (stat(pwd, &sb) == 0 && sa.st_ino == sb.st_ino && sa.st_dev == sb.st_dev) (void) strcpy(curdir, pwd); } Anyone else think that this is totally bogus and should be removed? It certainly EXPLAINS a few things! :-) With all the shells in existance out there, I don't think that $PWD should or can be trusted. Comments? Jordan