Fwd: Re: Why does the command builtin not circumvent invocation of builtins?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I forward this message as I originally accidentally sent it as a HTML message which got bounced.



-------- Forwarded Message --------
Subject: Re: Why does the command builtin not circumvent invocation of builtins?
Date: 	Fri, 30 Aug 2024 22:17:00 +0200
From: 	Anselm Schüler <mail@xxxxxxxxxxxxxxxxxx>
To: 	Harald van Dijk <harald@xxxxxxxxxxx>, dash@xxxxxxxxxxxxxxx



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. Of note, Fish also has the builtin builtin, which is used to run builtins shadowed by custom functions, although in the handful of cases I tried Fish actually outright prevents defining such functions.

Thanks
Anselm





[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux