Paul Jarc wrote:
> Jérémy Hervé wrote:
> > -bash: /usr/sbin/httpd: No such file or directory
> 
> "hash -r" will fix that.  See "help hash" and "man bash" for details.

There is also checkhash.

  shopt -s checkhash

In man bash:

      checkhash
              If set, bash checks that a command found in the
              hash table exists before trying to execute it.
              If a hashed command no longer exists, a normal
              path search is performed.

Bob


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to