[LTP] [PATCH 2/3] binfmt_misc02.sh: Use "command -v" instead of "which"
Petr Vorel
pvorel@suse.cz
Wed Aug 18 11:42:44 CEST 2021
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
More information about the ltp
mailing list