Jan 10, 2013

bash stores path to an executeable and doesn't recognize,when the command is gone

I had a problem with a script, I've stored in a local binary path, which is on the
environment PATH.

Now I had a redesign and the executable was moved.
But when it is called, the old executable on the previous path is stored.
A call of which <file> returns the new location.

The clean the cache of executables in bash:

[ewer@sunray1:/users/trinomic/ewer]>hash -h 
-bash: hash: -h: invalid option 
hash: usage: hash [-lr] [-p pathname] [-dt] [name ...] 
hits command 
1 /usr/bin/which 
6 /usr/bin/tel