Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Dec 1999 10:49:48 +0100
From:      Marcel Moolenaar <marcel@scc.nl>
To:        current@FreeBSD.org
Subject:   Re: sh(1) broken caching [was: Re: Broken sh(1)?]
Message-ID:  <3857643C.D1349A70@scc.nl>
References:  <712.945183175@axl.noc.iafrica.com>, <19991215103444.B60044@cons.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Martin Cracauer wrote:
> 
> In <38565DEA.4487DF53@scc.nl>, Marcel Moolenaar wrote:
> > 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
> 
> This line does *not* change $PATH for the next lines.

*I KNOW* geez...

> > <some output>
> > % hash -v
> > builtin hash
> > builtin echo
> > /usr/bin/which
> > /usr/sbin/ls
> > ^^^^^^^^^^^^ Caching index based on temp. path!!!!
> > % ls
> > ls: not found
> 
> $PATH is still /sbin:/bin:/usr/sbin:/usr/bin:....

Exactly, so why can't it find ls then?

-- 
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?3857643C.D1349A70>