[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why doesn't Autotools makefile update Bash hash cache after install?
From: |
Jeffrey Walton |
Subject: |
Why doesn't Autotools makefile update Bash hash cache after install? |
Date: |
Tue, 13 Jun 2017 08:29:07 -0400 |
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 results can be reproduced with a simple 'configure && make && sudo
make install'. There's nothing special going on. In fact, I suspect
this is probably the most common use case.
Why does Autotools produce a makefile which does _not_ update the
cache under Bash shells?
Jeff
- Why doesn't Autotools makefile update Bash hash cache after install?,
Jeffrey Walton <=