bug-bash
[Top][All Lists]
Advanced

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

Re: 'command' builtin doesn't seem to work for external 'printf'


From: Greg Wooledge
Subject: Re: 'command' builtin doesn't seem to work for external 'printf'
Date: Tue, 18 May 2021 07:43:42 -0400

On Mon, May 17, 2021 at 04:00:10PM -0700, Carl Thompson wrote:
> Nevermind! I was misunderstanding what the 'command' builtin does!

For the archives: 'command' only suppresses functions.  It doesn't
suppress shell builtins.

The typical use is when writing a wrapper function with the same name
as the command it's wrapping.

git() { LESS='-R -X' command git "$@"; }



reply via email to

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