From owner-freebsd-current Wed Dec 15 1:53: 0 1999 Delivered-To: freebsd-current@freebsd.org Received: from mail.scc.nl (node1374.a2000.nl [62.108.19.116]) by hub.freebsd.org (Postfix) with ESMTP id 9B98314C01 for ; Wed, 15 Dec 1999 01:52:57 -0800 (PST) (envelope-from freebsd-current@scc.nl) Received: (from daemon@localhost) by mail.scc.nl (8.9.3/8.9.3) id KAA18299 for current@FreeBSD.org; Wed, 15 Dec 1999 10:49:53 +0100 (CET) (envelope-from freebsd-current@scc.nl) Received: from GATEWAY by dwarf.hq.scc.nl with netnews for current@FreeBSD.org (current@FreeBSD.org) To: current@FreeBSD.org Date: Wed, 15 Dec 1999 10:49:48 +0100 From: Marcel Moolenaar Message-ID: <3857643C.D1349A70@scc.nl> Organization: SCC vof Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <712.945183175@axl.noc.iafrica.com>, <19991215103444.B60044@cons.org> Subject: Re: sh(1) broken caching [was: Re: Broken sh(1)?] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Martin Cracauer wrote: > > 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. *I KNOW* geez... > > > > % 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:.... Exactly, so why can't it find ls then? -- Marcel Moolenaar mailto:marcel@scc.nl SCC Internetworking & Databases http://www.scc.nl/ The FreeBSD project mailto:marcel@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message