2
# SCCS Id: @(#)nethack.sh 3.3 90/02/26
4
HACKDIR=/usr/lib/games/nethack
8
# see if we can find the full path name of PAGER, so help files work properly
9
# assume that if someone sets up a special variable (HACKPAGER) for NetHack,
10
# it will already be in a form acceptable to NetHack
11
# ideas from brian@radio.astro.utoronto.ca
12
if test \( "xxx$PAGER" != xxx \) -a \( "xxx$HACKPAGER" = xxx \)
17
# use only the first word of the pager variable
18
# this prevents problems when looking for file names with trailing
19
# options, but also makes the options unavailable for later use from
27
if test ! -f $HACKPAGER
32
if test -f $i/$HACKPAGER
34
HACKPAGER=$i/$HACKPAGER
41
if test ! -f $HACKPAGER
43
echo Cannot find $PAGER -- unsetting PAGER.