Re: How to emulate the Unix command "which"



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

.



Relevant Pages

  • Re: How to emulate the Unix command "which"
    ... The solution suggested by Chris is just good for me ... I give up the use of the system "which" command because it seems that on ... HPUX it reports the real path) ...
    (comp.lang.perl.misc)
  • Re: EPG Error Submissions ignored by MS/Broadcasting Dataservices
    ... Chris this is a total cop-out and you know it. ... THE EPG FOR TELEWEST LONDON ... > New bugs generated from reports: ... > In other words slightly more than 6% of the bug reports we received ...
    (microsoft.public.windows.mediacenter)
  • Re: A low fat diet that leads to leptin resistance. Then again rats are not humans
    ... Chris Wrote: ... You reported some very anecdotal feedback about friends on low fat ... I'm not saying your anecdotal reports are not worth mentioning but the ... {that Calories In vs Calorie out is not true). ...
    (alt.support.diabetes)
  • Re: Parrot squawks on womans affair
    ... > in the Leeds flat she shared with her partner Chris Taylor, ... > to reports. ... > Mr Taylor apparently became suspicious after Ziggy croaked "Hiya Gary" ... > The parrot also made smooching sounds whenever the name Gary was said ...
    (rec.pets.cats.anecdotes)
  • Re: M31 3X Bigger than Thought
    ... Chris L Peterson wrote: ... > that is the source of such reports from honest observers. ...
    (sci.astro.amateur)