Best way to over-ride a builtin and run the "real" version from /bin (or
From:
Stan Marsh
Subject:
Best way to over-ride a builtin and run the "real" version from /bin (or wherever)
Date:
Mon, 14 Jul 2025 10:21:59 -0600
For example, "false" is a bash builtin, but the version in /bin has better
functionality. How best to invoke the "real" version, bypassing the builtin?
Obviously, using /bin/false works, but assume that you don't necessarily know
the path of the non-builtin version (i.e., don't want to hard-code it).
I thought this was done using "command", like:
$ command false --help
but that still runs the builtin.
=================================================================================
Please do not send me replies to my posts on the list.
I always read the replies via the web archive, so CC'ing to me is unnecessary.
Note that they always end up in my Spam file anyway, so it is annoying to have
to
periodically clean that out.