[25800] in Athena Bugs
Re: sun4 9.2.27: which
daemon@ATHENA.MIT.EDU (Greg Hudson)
Tue Jul 13 19:20:23 2004
From: Greg Hudson <ghudson@mit.edu>
To: Charles F Dominguez <cfdoming@mit.edu>
In-Reply-To: <200407100054.i6A0sgCk008249@biohazard-cafe.mit.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Message-Id: <1089760784.14546.31.camel@egyptian-gods.mit.edu>
Mime-Version: 1.0
Date: Tue, 13 Jul 2004 19:19:45 -0400
cc: bugs@mit.edu
Errors-To: bugs-bounces@mit.edu
For some odd reason, Solaris (at least) defines the "which" command to
display the path to the proper binary according to a csh session which
has read the user's .cshrc file.
The Athena default dotfiles do not contain any references to the
tcsh-specific OSTYPE variable, but perhaps your .cshrc.mine does? If
so, that's the problem. I could not reproduce the problem using a test
account.
I believe the canonical equivalent to "which" under bash is "type".
"where" also works, without having the csh-specific baggage associated
with "which".