From owner-freebsd-current Wed Dec 15 14: 8:27 1999 Delivered-To: freebsd-current@freebsd.org Received: from mass.cdrom.com (mass.cdrom.com [204.216.28.184]) by hub.freebsd.org (Postfix) with ESMTP id 3A78B1529A for ; Wed, 15 Dec 1999 14:08:25 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id OAA01251; Wed, 15 Dec 1999 14:09:44 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Message-Id: <199912152209.OAA01251@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Martin Cracauer Cc: Marcel Moolenaar , Sheldon Hearn , current@FreeBSD.ORG Subject: Re: sh(1) broken caching [was: Re: Broken sh(1)?] In-reply-to: Your message of "Wed, 15 Dec 1999 10:34:44 +0100." <19991215103444.B60044@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 15 Dec 1999 14:09:44 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In <38565DEA.4487DF53@scc.nl>, Marcel Moolenaar wrote: > > Sheldon Hearn wrote: > > > > > > On Tue, 14 Dec 1999 15:42:11 +0100, Marcel Moolenaar wrote: > > > > > > > > You set all those variables for the first make command, but not for the > > > > > second. What did you expect to happen? > > > > > > > > That make(1) would execute. > > > > > > But what was the PATH set to _before_ you set it for the first execution > > > of make? That's what's important, surely? > > > > It is. Try this: > > > > scones% sh > > % echo $PATH > > /sbin:/bin:/usr/sbin:/usr/bin:.... > > % hash -v > > builtin hash > > builtin echo > > % which ls > > /bin/ls > > % hash -v > > builtin hash > > builtin echo > > /usr/bin/which > > % PATH=/foo:/bar:/bin ls > > This line does *not* change $PATH for the next lines. > > > > > % hash -v > > builtin hash > > builtin echo > > /usr/bin/which > > /usr/sbin/ls > > ^^^^^^^^^^^^ Caching index based on temp. path!!!! > > % ls > > ls: not found > > $PATH is still /sbin:/bin:/usr/sbin:/usr/bin:.... You don't get it, do you? So the path is /sbin:/bin:... ... where is ls, again? -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message