[Top][All Lists]

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

Needing to 'hash -r' after a used command moves

From: Tim Waugh
Subject: Needing to 'hash -r' after a used command moves
Date: Mon, 28 Jun 2004 17:54:48 +0100
User-agent: Mutt/1.4.1i

Is the behaviour of bash intentional that a hashed command is not
automatically rehashed if it is found to have disappeared?

For example,

1. Create a dummy script in /usr/local/bin/dummy
2. Run dummy
3. mv /usr/local/bin/dummy /usr/bin

Actual Results:  bash: /usr/local/bin/dummy: No such file or directory

Is there a reason that bash doesn't detect this situation,
automatically remove the appropriate hash entry, and try again?


Attachment: pgpxoZQzFQOFw.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]