Whereis path
Elias Pipping
pipping at macports.org
Thu Apr 5 17:36:25 PDT 2007
you should use 'which' instead of 'whereis'. 'whereis' doesn't
search /opt/local, by default, even if it's in your PATH. 'which'
does, though.
you might also want to use 'type', if you're running bash. 'type' has
the comfort of offering a '-a' for "all" parameter (see below.
$whereis bash
/bin/bash
$which bash
/opt/local/bin/bash
$type bash
bash is /opt/local/bin/bash
$type -a bash
bash is /opt/local/bin/bash
bash is /bin/bash
Regards,
Elias Pipping
On Apr 6, 2007, at 2:20 AM, Alex Kac wrote:
> Of course, when I do a "whereis" it gives me stuff in /usr/bin. How
> do I get whereis to show me the path in /opt/local?
> Alex Kac - President and Founder
> Web Information Solutions, Inc. - Microsoft Certified Partner
>
> "Patience is the companion of wisdom."
> --Anonymous
>
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-users
More information about the macports-users
mailing list