Which script (was Re: comp.unix.questions)
BURNS
gt0178a at prism.gatech.EDU
Wed Sep 19 17:04:43 AEST 1990
in article <571 at DIALix.UUCP>, bernie at DIALix.UUCP (Bernd Felsche) says:
[supplies expanded which script]
I saved your script as I thought it was an interesting piece of work, but
I will point out a couple of problems:
1) The easy one was my (Dynix's) version of sh didn't like your syntax for
test(1), so I used ksh.
2) If you do (your script is called wh):
wh wall # you get:
wall not found
Similarly, w/ the system supplied which:
which wall # you get:
no wall in . /hydra9/gt01/gt0178a /usr/local/bin /usr/ucb /bin /usr/bin /usr/att/bin /usr/att/usr/bin
which is of course my path. Finally, the system supplied (at least for me)
whereis gives:
ll `whereis wall` # you get:
wall: not found
-rwxr-x--- 1 root 20480 May 21 1988 /bin/wall*
-r--r--r-- 1 root 984 May 21 1988 /usr/man/man1/wall.1
Ignore the 1st line, unless it is the only one. Obviously wall is failing
the executable test in the 1st 2 commands. Moral - don't stick to one tool
(there are lots of things whereis can't find).
--
BURNS,JIM
Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332
uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a
Internet: gt0178a at prism.gatech.edu
More information about the Comp.unix.questions
mailing list