[net.sources.bugs] Tiny Hack bug...

dan@rna.UUCP (Dan Ts'o) (12/19/84)

x
	Hack seems like a good somewhat improved Rogue. Bringing up on
4.2BSD wasn't too hard. There is a tiny bug (among others) in the
shell script "hack.sh". HACK needs a "-d" option in front of the first
argument which should be the HACK directory.

#!/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