document updated 13 years ago, on Apr 1, 2011
Unfortunately, the 'where' program is a csh/tcsh builtin, and isn't available on other shells.
How do you implement this in Bash/etal?
- type -a <program>
- function where() { perl -MFile::Which=where -e 'print map {"$_\n"} where shift' $1; }
- # use tcsh's builtin from Bash
function where() { WHERE=$1 tcsh -c 'where "$WHERE"'; }