From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Wed, 18 Aug 2021 11:42:44 +0200 Subject: [LTP] [PATCH 2/3] binfmt_misc02.sh: Use "command -v" instead of "which" In-Reply-To: References: <20210818091224.27578-1-pvorel@suse.cz> <20210818091224.27578-3-pvorel@suse.cz> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi, ... > > - 6) verify_binfmt_misc ":tmagic:M:0:This::$(which cat):" \ > > + 6) verify_binfmt_misc ":tmagic:M:0:This::$(type cat):" \ > > "$TST_DATAROOT/file.magic" "0";; > This does not match the description, you say you replace which with command, > but actually you replaced it with type. Good catch, thanks! Actually, this commit is wrong, it *must* use "command -v". Kind regards, Petr