/usr/lib/games/nethack/nethack-lisp.sh is in nethack-lisp 3.4.3-15build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #!/bin/sh
set -e
HACKSTYLE=lisp
if [ -z "$NETHACKOPTIONS" ]; then
if [ -e $HOME/.nethackrc ]; then
NETHACKOPTIONS=$HOME/.nethackrc
export NETHACKOPTIONS
elif [ -e $HOME/.nethackrc.$HACKSTYLE ]; then
NETHACKOPTIONS=$HOME/.nethackrc.$HACKSTYLE
export NETHACKOPTIONS
else
NETHACKOPTIONS=/etc/nethack/nethackrc.$HACKSTYLE
export NETHACKOPTIONS
fi
fi
HACKDIR=/usr/lib/games/nethack
export HACKDIR
HACK=$HACKDIR/nethack-$HACKSTYLE
cd $HACKDIR
exec $HACK "$@"
|