[LTP] [PATCH 5/5] checkbashisms: Disable 'type' check

Petr Vorel pvorel@suse.cz
Fri Sep 3 12:30:57 CEST 2021


Hi Cyril,

> Hi!
> Looks good.

> Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

Looks like 'command -v' which is POSIX works (tested in bash, dash, busybox sh
and android shell), thus I suggest to drop this patch and use 'command -v'
instead of 'type'.

$ foo(){ echo "in foo";}
$ command -v foo
foo

Kind regards,
Petr


More information about the ltp mailing list