#!/bin/sh -
-# $NetBSD: wargames.sh,v 1.2 1995/04/22 07:53:44 cgd Exp $
+# $NetBSD: wargames.sh,v 1.5 2017/05/21 16:47:26 leot Exp $
#
# Copyright (c) 1985, 1993
# The Regents of the University of California. All rights reserved.
echo -n "Would you like to play a game? "
read x
+x=`echo $x | sed 's/[^a-z0-9_]//g'`
+
if [ -f /usr/games/$x ] ; then
tput cl
exec /usr/games/$x
else
- echo "Funny, the only way to win is not to play at all."
+ exec cat <<QUOTE
+A strange game.
+The only winning move is
+not to play.
+QUOTE
fi
exit 0