On Wed, Aug 18, 2021 at 12:53:53 -0400, Jason Riedy wrote:
> I've been using which for decades, including on SunOS and AIX. When I know
> it's a script, less `which foobar` is quick and easy.

Adding this to ~/.bashrc or similar might help:
  which () { bash -c 'command -v "$@"' which "$@"; }

It won't find binaries shadowed by shell builtins or functions, though I
don't imagine this would be a common problem.

-- Michael

Attachment: signature.asc
Description: PGP signature

Reply via email to