[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: which whichy



>>>>> "E" == "Eloy F Macha" <emacha@nmsu.edu> writes:


E> I believe which is part of csh and variants. (Correct me if i am
E> wrong.)  I was also looking for which a while back, but couldn't
E> find one anywhere in sunsite, tsx, etc. Finally found one in the
E> O'Reilly book 'Unix Power Tools'. Compiles fine and does the
E> job. If you want to I'll email you the source code (it's not that
E> long).

The newer packages have which as /usr/bin/which.  It contains:

#!/bin/bash
type -path $*

--
Rob


Reply to: