LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] which which

[ILUG] which which

Mark Fallon mfallon at ie.oracle.com
Tue Apr 25 12:57:56 IST 2000


"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
> '/usr/bin/which'.
> 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
> ideas?
>
> TIA,
> robert
>
> Robert Elliott          Systems Administrator, Planet Cyber Cafe
> rde at irelands-web.ie     http://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,
they
all give the same results.

Regards,

Mark






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell