help-bash
[Top][All Lists]
Advanced

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

Re: Best way to over-ride a builtin and run the "real" version from /bin


From: Zachary Santer
Subject: Re: Best way to over-ride a builtin and run the "real" version from /bin (or wherever)
Date: Mon, 14 Jul 2025 14:09:28 -0400

On Mon, Jul 14, 2025 at 1:28 PM Stan Marsh <gazelle@xmission.com> wrote:
>
> 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.

env false
right?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]