Re: Why doesn't Autotools makefile update Bash hash cache after install?

2017-06-13 Thread Earnie
On 6/13/2017 9:47 AM, Zack Weinberg wrote: > On Tue, Jun 13, 2017 at 9:45 AM, Jeffrey Walton wrote: >> On Tue, Jun 13, 2017 at 8:40 AM, Zack Weinberg wrote: >>> On Tue, Jun 13, 2017 at 8:29 AM, Jeffrey Walton wrote: Why does

Re: Why doesn't Autotools makefile update Bash hash cache after install?

2017-06-13 Thread Jeffrey Walton
On Tue, Jun 13, 2017 at 8:40 AM, Zack Weinberg wrote: > On Tue, Jun 13, 2017 at 8:29 AM, Jeffrey Walton wrote: >> >> Why does Autotools produce a makefile which does _not_ update the >> cache under Bash shells? > > It can't. The rehash operation has to be

Re: Why doesn't Autotools makefile update Bash hash cache after install?

2017-06-13 Thread Zack Weinberg
On Tue, Jun 13, 2017 at 9:45 AM, Jeffrey Walton wrote: > On Tue, Jun 13, 2017 at 8:40 AM, Zack Weinberg wrote: >> On Tue, Jun 13, 2017 at 8:29 AM, Jeffrey Walton wrote: >>> >>> Why does Autotools produce a makefile which does _not_ update

Re: Why doesn't Autotools makefile update Bash hash cache after install?

2017-06-13 Thread Zack Weinberg
On Tue, Jun 13, 2017 at 8:29 AM, Jeffrey Walton wrote: > > Why does Autotools produce a makefile which does _not_ update the > cache under Bash shells? It can't. The rehash operation has to be done in the shell that is the parent process of 'make install' (and any other

Why doesn't Autotools makefile update Bash hash cache after install?

2017-06-13 Thread Jeffrey Walton
Hi Everyone, After performing a 'make install', the Bash shell could still use the old program because the Bash hash cache was not updated for the program. 'which' will show the expected program (say /usr/local/bin/foo), but running 'foo' will result in the old program (say /usr/bin/foo). The