[25781] in Athena Bugs
sun4 9.2.27: which
daemon@ATHENA.MIT.EDU (Charles F Dominguez)
Fri Jul 9 20:54:46 2004
Message-Id: <200407100054.i6A0sgCk008249@biohazard-cafe.mit.edu>
To: bugs@mit.edu
Date: Fri, 09 Jul 2004 20:54:42 -0400
From: Charles F Dominguez <cfdoming@mit.edu>
Errors-To: bugs-bounces@mit.edu
System name: biohazard-cafe.mit.edu
Type and version: Sun-Fire-280R 9.2.27 (with mkserv)
Display type: unknown
Shell: /bin/athena/bash
Window manager: unknown
What were you trying to do?
Run the which script. For example, "which test"
What's wrong:
Script fails with the error: "OSTYPE: Undefined variable"
The script runs fine under tcsh, but fails when invoked under any
other shell, including sh, csh, and bash. A workaround is to invoke it
using tcsh, ie: "tcsh which test"
What should have happened:
It should have given the path to test
Please describe any relevant documentation references:
man which