help-bash
[Top][All Lists]
Advanced

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

Re: Why doesn't the type builtin hash found commands?


From: Chet Ramey
Subject: Re: Why doesn't the type builtin hash found commands?
Date: Sun, 10 Jan 2021 13:53:31 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

On 1/9/21 11:51 AM, Utku wrote:
Bash hashes a command after it has been discovered. `type` is a shell
builtin but it does not hash a command after it discovers a command:

Because that's not its purpose. It's supposed to tell you what bash would
do with a command name if you tried to execute it.

If you want to hash a command name, use `hash'.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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