From owner-freebsd-current Wed Dec 15 1:35:12 1999 Delivered-To: freebsd-current@freebsd.org Received: from gilgamesch.bik-gmbh.de (gilgamesch.bik-gmbh.de [194.233.237.194]) by hub.freebsd.org (Postfix) with ESMTP id A05DC153ED for ; Wed, 15 Dec 1999 01:35:09 -0800 (PST) (envelope-from cracauer@gilgamesch.bik-gmbh.de) Received: (from cracauer@localhost) by gilgamesch.bik-gmbh.de (8.9.3/8.7.3) id KAA60631; Wed, 15 Dec 1999 10:34:44 +0100 (MET) Date: Wed, 15 Dec 1999 10:34:44 +0100 From: Martin Cracauer To: Marcel Moolenaar Cc: Sheldon Hearn , current@FreeBSD.ORG Subject: Re: sh(1) broken caching [was: Re: Broken sh(1)?] Message-ID: <19991215103444.B60044@cons.org> References: <712.945183175@axl.noc.iafrica.com> <38565DEA.4487DF53@scc.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <38565DEA.4487DF53@scc.nl>; from Marcel Moolenaar on Tue, Dec 14, 1999 at 04:10:34PM +0100 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:.... Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ BSD User Group Hamburg, Germany http://www.bsdhh.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message