$NetBSD: patch-ad,v 1.2 1999/12/24 22:30:00 pooka Exp $ --- sys/unix/nethack.sh.orig Sat Dec 11 07:21:05 1999 +++ sys/unix/nethack.sh Fri Dec 17 14:14:54 1999 @@ -1,9 +1,15 @@ #!/bin/sh # SCCS Id: @(#)nethack.sh 3.3 90/02/26 -HACKDIR=/usr/games/lib/nethackdir +if [ "$1" = "" ]; then + TTY=tty +else + TTY=$1 +fi + +HACKDIR=XXXPREFIXXXX/share/nethackdir export HACKDIR -HACK=$HACKDIR/nethack +HACK=XXXPREFIXXXX/bin/nethack-$TTY MAXNROFPLAYERS=4 # see if we can find the full path name of PAGER, so help files work properly