[2127] in SIPB bug reports

home help back first fref pref prev next nref lref last post

Re: where

daemon@ATHENA.MIT.EDU (Calvin Clark)
Wed Oct 2 16:56:55 1991

Date: Wed, 2 Oct 91 16:56:18 -0400
From: Calvin Clark <ckclark@Athena.MIT.EDU>
To: Ken Raeburn <Raeburn@MIT.EDU>
Cc: bug-sipb@Athena.MIT.EDU, marc@Athena.MIT.EDU, ckclark@MIT.EDU
Reply-To: ckclark@mit.edu


> (Calvin: I think you meant the "where" built-in, not "which".)

No, since I was using tcsh-6.00 while making those comments, I was
really referring to the `which' built-in.  There does not seem to be a
`where' built-in in tcsh-6.00:

Oct 2 (16:38) hal-2000:/tmp
[121]% which echo
echo: shell built-in command.
Oct 2 (16:39) hal-2000:/tmp
[122]% which which
which: shell built-in command.
Oct 2 (16:39) hal-2000:/tmp
[123]% which where
where: Command not found.
Oct 2 (16:39) hal-2000:/tmp
[124]% add sipb
Oct 2 (16:39) hal-2000:/tmp
[125]% which where
/mit/sipb/vaxbin/where
Oct 2 (16:40) hal-2000:/tmp
[126]%

But you're right, there is a builtin `where' in the current Athena tcsh,
and its use in scripts does not produce the same ioctl error that the
built-in which does, so part of my argument for keeping is blown away,
unless you want to use it in a Bourne shell script.  The proper defense
for the program would have to come from someone who's actually used it a
lot. 

-Calvin

home help back first fref pref prev next nref lref last post