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: Greg Wooledge
Subject: Re: Best way to over-ride a builtin and run the "real" version from /bin (or wherever)
Date: Mon, 14 Jul 2025 15:03:44 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

On Mon, Jul 14, 2025 at 10:21:59 -0600, Stan Marsh wrote:
> I thought this was done using "command", like:
> 
>     $ command false --help
> 
> but that still runs the builtin.

"command" only suppresses shell function lookup, not builtins or alias
expansions.

If you want to suppress a builtin, you need to disable it, using
"enable -n".



reply via email to

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