"Robert D. Elliott" wrote:
> Hi, all.
> I've taken to a policy of extreme paranoia over the last few weeks, and
> I've found a few things that are somewhat bemusing; perhaps some genii can
> enlighten me.
> My main problem is the 'which' command; if I type 'which which', I'm told
> that it's an internal shell command. However, if I run 'newwhich which'
> (newwhich is a which I took from a different, secure box), it gives me
> I'm not (quite) panicking about this apparent disparity, given that all
> boxes I'm using have a which command, but I'd like to know for sure. Any
>> Robert Elliott Systems Administrator, Planet Cyber Cafe
>rde at irelands-web.iehttp://robertelliott.org>
I think this depends on the shell you are using.
For example under bash, which is seen as an executable
under tcsh which is a built-in shell command
under ksh which is an executable
I have tried this on three machines here Redhat 6.1, Irix 6.5, HP-UX 11.00,
all give the same results.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!