|
From: | Eric Blake |
Subject: | Re: [Help-bash] How to make sure always run external command instead of builtin function? |
Date: | Mon, 3 Dec 2018 16:29:55 -0600 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 |
On 12/3/18 4:12 PM, Peng Yu wrote:
Hi, 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 -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |