Re: How to emulate the Unix command "which"
- From: usenet@xxxxxxxxxx
- Date: 19 Aug 2005 12:41:22 GMT
Leon Nabot <nabotleon@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> Thank's to all.
>
> The solution suggested by Chris is just good for me (One line of code)
>
> I give up the use of the system "which" command because it seems that on
> Solaris even the standalone version reports the alias (When in Linux and
> HPUX it reports the real path)
>
Yes, I think the standalone 'which' on Solaris does wierd things like
looking at what shell you are running and then trying to parse the
relevant files to find aliases as well as actual executables on the
PATH.
--
Chris Green
.
- References:
- How to emulate the Unix command "which"
- From: Leon Nabot
- Re: How to emulate the Unix command "which"
- From: Leon Nabot
- How to emulate the Unix command "which"
- Prev by Date: Re: How can I add tokens at arbitrary positions on a line in a file?
- Next by Date: Re: How do I find the length of the longest line in a file?
- Previous by thread: Re: How to emulate the Unix command "which"
- Next by thread: Understanding Mechanize
- Index(es):
Relevant Pages
|