
Whence - Perl implementation/extension of ksh 'whence' builtin

Whence foo
Whence '?sh'
Whence '*stat'
Whence -f foo\*

This is a Perl implementation of the ksh whence builtin, similar to csh which or bash type -p. It differs from these in two ways: (1) it finds all occurrences of its arguments on PATH rather than just the first and (2) it treats its arguments as patterns, such that Whence cat* will return all commands that start with cat rather than looking for a literal 'cat*'.

David Boyce <dsbperl AT boyski.com>

Copyright (c) 2000-2002 David Boyce. All rights reserved. This Perl program is free software; you may redistribute and/or modify it under the same terms as Perl itself.

perl(1), ksh(1), "perldoc Env::Path"