Subject: Re: replacement for which(1)
To: Simon J. Gerraty <sjg@crufty.net>
From: John Nemeth <jnemeth@victoria.tc.ca>
List: tech-userlevel
Date: 04/01/2004 19:25:40
On Aug 22,  1:52pm, "Simon J. Gerraty" wrote:
} On Thu, 1 Apr 2004 18:34:09 -0800, John Nemeth writes:
} ># uname -a
} >HP-UX hp B.10.20 U 9000/800 2006371227 unlimited-user license
} ># sh
} ># type telnet
} >telnet is /usr/bin/telnet
} 
} Cool - I assume that "sh" was /bin/sh ? ;-)

     Yep.  Actually /bin is symlinked to /usr/bin, so it is really
/usr/bin/sh.

} Even so, I'm not sure I'd use type in a script - since it needs enough
} post processing (esp to weed out alias related output) that it gains little
} at best. 

     I have to wonder if that sh even has aliases.  Of course, your
point still stands for the general case.

}-- End of excerpt from "Simon J. Gerraty"