I installed a new executable into /usr/local/bin
and this directory is in my path ahead of /usr/bin
. But, bash still prefers the version in /usr/bin
until I start a new bash process. The which
command clearly sees that the preferred version is in /usr/local/bin
.
Bash must be caching executable file locations. Is it possible to refresh it to now see the new version in /usr/local/bin without having to restart bash?