Re: When a hashed pathname is deleted, search PATH
From:
Chet Ramey
Subject:
Re: When a hashed pathname is deleted, search PATH
Date:
Sat, 15 Mar 2014 14:25:29 -0400
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 3/14/14, 6:14 PM, Eric Blake wrote:
> So the three ways to reset a hash without resorting to the non-portable
> shopt are 'hash -r', 'PATH=$PATH', or causing lookup to fail - but bash
> is not honoring the third way by default (I didn't test if bash in 'set
> -o posix' behaves differently).
You took the time to write all this and didn't spend the minute to test
whether bash does this in posix mode?
Yes, bash uses the same mechanism as `checkhash' in posix mode.
Chet
- --
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlMkmxIACgkQu1hp8GTqdKuxrACffB3HT1PRZoyM+xMZ0qAHv/TO
v1sAn1yBeGjJ5imIE6x6zKwqRI6alWyM
=6AG1
-----END PGP SIGNATURE-----