help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] How to make sure always run external command instead of


From: Bob Proulx
Subject: Re: [Help-bash] How to make sure always run external command instead of builtin function?
Date: Mon, 3 Dec 2018 16:22:07 -0700
User-agent: Mutt/1.10.1 (2018-07-13)

Eric Blake wrote:
> Peng Yu wrote:
> > I currently use this to make sure to always run the external command.
> > Is it the best way to do so? Thanks.
> > 
> > "$(type -P cmd)" arg1 arg2
> 
> env cmd arg1 arg2
> also works

There is also another way too:

  (exec cmd ...)

As I learned just the other day:

  http://lists.gnu.org/archive/html/bug-bash/2018-09/msg00104.html
  http://lists.gnu.org/archive/html/bug-bash/2018-09/msg00101.html

Bob



reply via email to

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