[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

File path caching?



Hi all,

I've got another weird problem which is kind of annoying.

Say I have a program in /usr/bin, called fred for example.  I can run
fred and everything is fine.

Then I create a file in /usr/local/bin, which is also called fred (say a
wrapper for the real one).  Since /usr/local/bin is earlier in my path
it should run first.

However when I try and run fred, it still runs the original version in 
/usr/bin, until I log out and log back in again.

Also, if I log out and back in I can run /usr/local/bin/fred, but if I then
delete that program and try running fred again, I get a "file not found" error,
despite there being a executable called fred in /usr/bin.

Can anyone explain why this happens?

Thanks,


Chris



-- 

-------------------------------------------------------------------
REALITY.SYS corrupted: Reboot universe? (Y/N/Q) ...Debian GNU/Linux
-------------------------------------------------------------------
Reply with subject 'key' for PGP public key.  KeyID A9E087D5

Attachment: pgpnblJkpW3IO.pgp
Description: PGP signature


Reply to: