On 30/08/2024 21:17, Anselm Schüler wrote:
I see that I have misinterpreted the text. Thank you.
You wrote “This also matches how "command" works in other shells as
well.”. I wanted to note that this is not how it works in Fish, where
e.g. command cd will try to execute a binary named cd from $PATH. I
believe this is where my incorrect understanding may have stemmed from.
Ah, thanks for that information! I should have said "in other
POSIX-compatible shells": fish does not try to be compatible with other
shells, it tries to be its own better thing (and I generally like what
it does), and there are going to be other confusing differences as well
when trying to move from fish to more standard shells.
Other POSIX-compatible shells that are useful to compare to to determine
whether behaviour is likely to be intentional include bash, ksh, yash.
Cheers,
Harald van Dijk