From owner-freebsd-current Wed Dec 15 4:55: 8 1999 Delivered-To: freebsd-current@freebsd.org Received: from knight.cons.org (knight.cons.org [194.233.237.195]) by hub.freebsd.org (Postfix) with ESMTP id 9EFE015563 for ; Wed, 15 Dec 1999 04:54:52 -0800 (PST) (envelope-from cracauer@knight.cons.org) Received: (from cracauer@localhost) by knight.cons.org (8.9.3/8.9.3) id NAA24616; Wed, 15 Dec 1999 13:54:47 +0100 (CET) Date: Wed, 15 Dec 1999 13:54:47 +0100 From: Martin Cracauer To: Marcel Moolenaar Cc: Martin Cracauer , current@FreeBSD.ORG Subject: Re: sh(1) broken caching [was: Re: Broken sh(1)?] Message-ID: <19991215135447.B24584@cons.org> References: <712.945183175@axl.noc.iafrica.com> <38565DEA.4487DF53@scc.nl> <19991215105728.A61202@cons.org> <38576BD2.21701740@scc.nl> <19991215122546.A24027@cons.org> <38578695.D41619A9@scc.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <38578695.D41619A9@scc.nl>; from Marcel Moolenaar on Wed, Dec 15, 1999 at 01:16:21PM +0100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In <38578695.D41619A9@scc.nl>, Marcel Moolenaar wrote: > Martin Cracauer wrote: > > > > In <38576BD2.21701740@scc.nl>, Marcel Moolenaar wrote: > > > It seems to me that when there's a PATH= assignment you don't want to > > > add anything to the cache or alternatively, clear the cache after > > > execution of the command having a PATH= assignment. > > > > The first solution is better, but the source messes with the hashtable > > too directly in too many places. > > > > Appended diff does the second route. Does it fix your problems? > > It fixes the examples and thus my problems :-) > > I already created a work-around in `make buildworld' so it works on > older shells without the need to build sh(1) in the bootstrap stage, > because the bug only pops up when doing a parallel make (ie make -jN) > because each command will be executed by the same shell instance in that > case. I would like you to do so, since I'd like to give the better solution a shot over the weekend. > BTW: Don't forget to remove '-g' from CFLAGS when you commit the patch > :-) Ops :-) Now working with a seperate Makefile (for bumping Warning levels). Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message