Liste des Groupes | Revenir à cu shell |
On 2025-01-23, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:Bash behaves strange here; 'which' doesn't find the executable but
nonetheless bash executes it, shows its output?
which is a nonstandard command; the POSIX command is type.
In those systems where "which" exists at all, it is often
a locally brewed program that is not exactly the same like
the one in other systems.
In Debian and derivatives thereof, /usr/bin/which is a shell script.
I see that in MacOS, there is a /usr/bin/which whose --help
says to send mail to which-bugs<at>gnu.org; the man page
implicates a Carlo Wood as the culprit behind it.
It doesn't appear to be part of GNU Coreutils.
Which which is which? Burn the which!
Les messages affichés proviennent d'usenet.