Another Tiny Hack bug...
Paul Dormitzer
phd at harvard.ARPA
Fri Dec 21 09:06:06 AEST 1984
One other tiny bug in the shell script is that you can't pass extra
arguments through it. (ie. hack -u Gandalf-W won't do anything)
A fix is to put $@ after the HACKDIR but before MAXNROFPLAYERS.
#!/bin/sh
HACK=/usr/games/HACK
HACKDIR=/usr/games/lib/hack/tmp
MAXNROFPLAYERS=6
MORE=/usr/ucb/more
cd $HACKDIR
case x$1 in
x-s*)
$HACK $@
;;
x*)
# /bin/cat news
$HACK -d$HACKDIR $@ $MAXNROFPLAYERS $MORE
;;
esac
--
Paul Dormitzer
...!decvax!genrad!wjh12!harvard!phd
phd at harvard.ARPA
More information about the Comp.sources.bugs
mailing list