diff options
author | abs <abs@NetBSD.org> | 1999-11-16 17:27:14 +0000 |
---|---|---|
committer | abs <abs@NetBSD.org> | 1999-11-16 17:27:14 +0000 |
commit | 48aebe32160c1da6fb208661b479bb4a1f34a300 (patch) | |
tree | 80d5aa8e10db5d4fac3cda34466776845f4c4012 /wargames | |
parent | 243fa308555a5f145e62d9fca67961a56cc5bf71 (diff) | |
download | bsdgames-darwin-48aebe32160c1da6fb208661b479bb4a1f34a300.tar.gz bsdgames-darwin-48aebe32160c1da6fb208661b479bb4a1f34a300.tar.zst bsdgames-darwin-48aebe32160c1da6fb208661b479bb4a1f34a300.zip |
Correct wargames quote, and while we are here be a little more selective
when checking if a game is valid (eg: '../../bin/csh')
Diffstat (limited to 'wargames')
-rw-r--r-- | wargames/wargames.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/wargames/wargames.sh b/wargames/wargames.sh index d4640f0c..d1bcd860 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.3 1999/11/16 17:27:14 abs Exp $ # # Copyright (c) 1985, 1993 # The Regents of the University of California. All rights reserved. @@ -37,10 +37,13 @@ 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." + # Original quote "Strange game, the only winning move is not to play." + echo "Strange, the only winning move is not to play." fi exit 0 |