bug-bash
[Top][All Lists]
Advanced

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

Re: PATH strange behaviour


From: Bob Proulx
Subject: Re: PATH strange behaviour
Date: Fri, 3 Aug 2007 12:58:36 -0600
User-agent: Mutt/1.5.9i

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




reply via email to

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