Sujet : Re: Default PATH setting - reduce to something more sensible?
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.unix.shellDate : 23. Jan 2025, 23:06:23
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250123140000.455@kylheku.com>
References : 1 2 3 4 5 6
User-Agent : slrn/pre1.0.4-9 (Linux)
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!
-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca