"command -v foo" looks like a much better option. Thanks!
Mike On Jun 24 2014, at 13:22 , Omair Majid <[email protected]> wrote: > * Erik Joelsson <[email protected]> [2014-06-04 04:18]: >> Looks good. Using "which" is a pain. > > Have you considered switching away from `which`? > > A number of other alternatives, with better behaviour, are possible: > http://stackoverflow.com/questions/592620/ > > Cheers, > Omair > > -- > PGP Key: 66484681 (http://pgp.mit.edu/) > Fingerprint = F072 555B 0A17 3957 4E95 0056 F286 F14F 6648 4681
