Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Dec 1999 11:22:10 +0100
From:      Marcel Moolenaar <marcel@scc.nl>
To:        Martin Cracauer <cracauer@cons.org>
Cc:        current@FreeBSD.ORG
Subject:   Re: sh(1) broken caching [was: Re: Broken sh(1)?]
Message-ID:  <38576BD2.21701740@scc.nl>
References:  <712.945183175@axl.noc.iafrica.com> <38565DEA.4487DF53@scc.nl> <19991215105728.A61202@cons.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38576BD2.21701740>