From owner-freebsd-current Wed Dec 15 2:22:17 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 7519514F7B for ; Wed, 15 Dec 1999 02:22:14 -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 11yBZA-000CKG-00; Wed, 15 Dec 1999 10:21:52 +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 LAA11006; Wed, 15 Dec 1999 11:22:10 +0100 (CET) (envelope-from marcel@scc.nl) Message-ID: <38576BD2.21701740@scc.nl> Date: Wed, 15 Dec 1999 11:22:10 +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: sh(1) broken caching [was: Re: Broken sh(1)?] References: <712.945183175@axl.noc.iafrica.com> <38565DEA.4487DF53@scc.nl> <19991215105728.A61202@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: > > OK, the problem is real. > > BTW, its worse: > > #! /bin/sh > hash -v > PATH=/sbin:/bin > PATH=/foo:/bar:/bin ls > hash -v > ls > > => coredump 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. -- 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