It's here on osx 10.11.6 at least. Looks like a sh builtin. -- Ionel GARDAIS Tech'Advantage CIO - IT Team manager
De: "???? ???????" <[email protected]> À: "Tim Düsterhus" <[email protected]> Cc: "haproxy" <[email protected]> Envoyé: Dimanche 16 Février 2020 10:13:17 Objet: Re: [PATCH] compression/lua_validation.vtc depends on "which" utility вс, 16 февр. 2020 г. в 01:55, Tim Düsterhus < [ mailto:[email protected] | [email protected] ] >: Ilya, Am 15.02.20 um 20:38 schrieb Илья Шипицин: > that utility is not available by default in Fedora docker image. I believe we can rewrite that test to use the `type` builtin instead of `which`: is it POSIX ? I've just checked on freebsd, it's there. What about osx, aix, ... ? BQ_BEGIN > $ type -p md5 > $ type -p md5sum > /usr/bin/md5sum > $ md5=$(type -p md5 || type -p md5sum) > $ echo $md5 > /usr/bin/md5sum Best regards Tim Düsterhus BQ_END -- 232 avenue Napoleon BONAPARTE 92500 RUEIL MALMAISON Capital EUR 219 300,00 - RCS Nanterre B 408 832 301 - TVA FR 09 408 832 301

