Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site harvard.ARPA
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!phd
From: phd@harvard.ARPA (Paul Dormitzer)
Newsgroups: net.sources.bugs
Subject: Another Tiny Hack bug...
Message-ID: <228@harvard.ARPA>
Date: Thu, 20-Dec-84 18:06:06 EST
Article-I.D.: harvard.228
Posted: Thu Dec 20 18:06:06 1984
Date-Received: Sat, 22-Dec-84 02:12:25 EST
References: <343@rna.UUCP>
Organization: Aiken Computation Laboratory, Harvard
Lines: 27


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@harvard.ARPA