X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/eca13b621f4cb1080cd5a74cc3e8bb5225935ef0..7562e03d5a67f7fca8205dbab0b115d63e08b0b7:/wargames/wargames.sh diff --git a/wargames/wargames.sh b/wargames/wargames.sh index d4640f0c..c8172a6c 100644 --- a/wargames/wargames.sh +++ b/wargames/wargames.sh @@ -1,5 +1,5 @@ #!/bin/sh - -# $NetBSD: wargames.sh,v 1.2 1995/04/22 07:53:44 cgd Exp $ +# $NetBSD: wargames.sh,v 1.4 2001/09/19 04:54:06 lukem Exp $ # # Copyright (c) 1985, 1993 # The Regents of the University of California. All rights reserved. @@ -37,10 +37,16 @@ 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 <