[SunRescue] Locate for Solaris ??

Dave McGuire rescue at sunhelp.org
Sat May 19 01:43:05 CDT 2001


On May 19, Rich Lafferty wrote:
> >   Let me put it this way...on every machine that I've used that wasn't
> > running bare SysV, I've been able to wype "which foo" and have the box
> > tell me where an executable named "foo" is.  And it's always been
> > exactly right.
> 
> Er, right, but it's not supposed to tell you where an executable named
> "foo" is. It's supposed to tell you what will happen when you type
> "foo" -- if the command is an alias or a builtin or appears twice in
> your path. So if the system cshrc defines an alias named "foo", it'll
> tell you that "foo" is an alias when it's not. And what does 'which
> kill' give you in bash? I bet it tells you that typing 'kill' will run
> '/bin/kill'. Guess what? It won't.

  Ahh yes, I understand your point.  I guess I just assumed that most
people have some clue about what their favorite shell's builtins are,
and how they have their aliases configured.  I certainly do, and I'm
willing to bet that you do too.

> If you'd rather ignore the manual pages, great, but there's no need to
> spread ignorance around by telling other people that it does something

  Ahem, watch it Rich.  My flamethrower is bigger than yours.

> it doesn't do, when the alternatives 'type' and sometimes 'whence' do
> exactly as expected. (By the way, for what you think which(1) does --
> finding an executable by a certain name -- you want whereis(1), which
> looks in standard places for executables, manpages and source.)

  Thanks, but...I may have given you the impression otherwise, but I do
know my way around Unix systems...started on SysIII in the 70's before
I was ten.

  Thanks for clearing up the specifics, though..

          -Dave McGuire



More information about the rescue mailing list