From owner-freebsd-current Tue Dec 14 7:10:40 1999 Delivered-To: freebsd-current@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 50FAD14D72 for ; Tue, 14 Dec 1999 07:10:38 -0800 (PST) (envelope-from marcel@scc.nl) Received: from [212.238.132.94] (helo=scones.sup.scc.nl) by post.mail.nl.demon.net with esmtp (Exim 2.12 #1) id 11xtaj-00003J-00; Tue, 14 Dec 1999 15:10:17 +0000 Received: from scc.nl (scones.sup.scc.nl [192.168.2.4]) by scones.sup.scc.nl (8.9.3/8.9.3) with ESMTP id QAA63059; Tue, 14 Dec 1999 16:10:34 +0100 (CET) (envelope-from marcel@scc.nl) Message-ID: <38565DEA.4487DF53@scc.nl> Date: Tue, 14 Dec 1999 16:10:34 +0100 From: Marcel Moolenaar Organization: SCC vof X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.5 i386) X-Accept-Language: en MIME-Version: 1.0 To: Sheldon Hearn , current@freebsd.org Subject: sh(1) broken caching [was: Re: Broken sh(1)?] References: <712.945183175@axl.noc.iafrica.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 % hash -v builtin hash builtin echo /usr/bin/which /usr/sbin/ls ^^^^^^^^^^^^ Caching index based on temp. path!!!! % ls ls: not found QED :-) -- 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