Willy, Am 18.02.20 um 14:24 schrieb Willy Tarreau: > So we can only use "type" with no argument and adjust it. Or better, > we can use "command -v" which looks OK: > > bash$ command -v curl > /usr/local/bin/curl > dash$ command -v curl > /usr/local/bin/curl > ksh$ command -v curl > /usr/local/bin/curl > > And it's also in POSIX: > https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html >
command -v is looking good to me: > fish$ command -v md5 || command -v md5sum > /usr/bin/md5sum > bash$ command -v md5 || command -v md5sum > /usr/bin/md5sum Best regards Tim Düsterhus