bug-bash
[Top][All Lists]
Advanced

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

Re: When a hashed pathname is deleted, search PATH


From: Chet Ramey
Subject: Re: When a hashed pathname is deleted, search PATH
Date: Mon, 17 Mar 2014 16:29:35 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

On 3/17/14 10:19 AM, Reuben Thomas wrote:

>     Only the minor performance hit it would extract on every command lookup.
> 
> 
> I don't understand, surely it only has a performance impact when a hashed
> file or a directory on PATH is (re)moved?

Not exactly, since it requires a check of every hashed filename retrieved
from the command hash table.  I should have said every *successful*
command hash table lookup.


> 
> Failing that, I'd also happily prepare a patch to simply switch the default
> to on.

Thanks; I think I can handle adding `= 1;'. :-)

I will look at doing this for the next version.

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/



reply via email to

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