[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why doesn't the type builtin hash found commands?
From: |
Utku |
Subject: |
Why doesn't the type builtin hash found commands? |
Date: |
Sat, 9 Jan 2021 11:51:09 -0500 |
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:
$ type man
man is /usr/bin/man
$ type man
man is /usr/bin/man
$ man
What manual page do you want?
$ type man
man is hashed (/usr/bin/man)
$
Why is this the case? I thought it would make sense for `type` to hash a
command after it found one.
Thank you
- Why doesn't the type builtin hash found commands?,
Utku <=