Deutsch   English   Français   Italiano  
<20250123140000.455@kylheku.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Kaz Kylheku <643-408-1753@kylheku.com>
Newsgroups: comp.unix.shell
Subject: Re: Default PATH setting - reduce to something more sensible?
Date: Thu, 23 Jan 2025 22:06:23 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <20250123140000.455@kylheku.com>
References: <vm5dei$2c7to$1@dont-email.me> <20250122120930.74@kylheku.com>
 <ccr96l-eot.ln1@ID-313840.user.individual.net>
 <vmthmu$3bb88$1@news.xmission.com> <vmtrqk$92b$1@reader2.panix.com>
 <vmu94j$1q2lp$1@dont-email.me>
Injection-Date: Thu, 23 Jan 2025 23:06:24 +0100 (CET)
Injection-Info: dont-email.me; posting-host="6ac8c3413732086a36d6350b8929b58e";
	logging-data="1929295"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18Um7RgCiYDnF6yKVQzklHFHMWxlQ3To7k="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:rV/l/Zc2Ky+mK50FhBhQj6+HUbc=
Bytes: 1952

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/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca