From owner-freebsd-current Wed Dec 15 1:46:54 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 A51B0153CE for ; Wed, 15 Dec 1999 01:46:51 -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 11yB0v-000Bk1-00; Wed, 15 Dec 1999 09:46:29 +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 KAA09729; Wed, 15 Dec 1999 10:46:49 +0100 (CET) (envelope-from marcel@scc.nl) Message-ID: <38576389.567EEE47@scc.nl> Date: Wed, 15 Dec 1999 10:46:49 +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: Martin Cracauer Cc: current@FreeBSD.ORG Subject: Re: Broken sh(1)? References: <38564693.EE9DB4EC@scc.nl> <19991215103049.A60044@cons.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Martin Cracauer wrote: > You mix up variable settings for just one command vs. permanent ones; > export VAR=foo > VAR=bar sh -c 'echo $VAR' > echo $VAR > ==> > bar > foo > > This is correct, the second line's variable settings only affect the > command behind it. The next command will have the original value > restored. I know this is correct and I'm even depending on it. The problem is that sh's caching has been poluted in such a way it can't recover. > > cd /usr/src; make -f Makefile.inc1 par-obj > > ./x.sh: make: not found > > > > ^^^^^^^^^^^^^^^ > > At this point PATH contains /usr/bin, so I don't think it's PATH > > related. > > No, $PATH is restored to what is was before the first make command. Yes, I know and as I said it contains /usr/bin. See other mail. -- 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