hash doesn't turn off

nadav vinik nadavlists at gmail.com
Thu Aug 3 14:00:33 PDT 2006


It's probably the 'whereis'.
When I use in 'type -a clear' I get:

$type -a clear
clear is /tools/bin/clear
clear is /usr/bin/clear

Nadav

On 8/3/06, Dan Nicholson <dbn.lists at gmail.com> wrote:
> On 8/3/06, Randy McMurchy <lfs-user at mcmurchy.com> wrote:
> > nadav vinik wrote these words on 08/03/06 09:00 CST:
> >
> > > Why the hashing is still working?
> >
> > Nothing actually *unset* the -h (the default) in the first place.
> > So, if /usr/bin/clear was found, *just once*, before you installed
> > it in /tools, it would still remember it in /usr/bin, regardless if
> > you 'set +h'.
>
> Not true. That's exactly what set +h keeps from happening. The default
> behavior (-h) is hashing the location of the previous command found.
> Turning off hashing (+h), forces a PATH search each time.
>
> --
> Dan
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>



More information about the lfs-support mailing list