From 48aebe32160c1da6fb208661b479bb4a1f34a300 Mon Sep 17 00:00:00 2001 From: abs Date: Tue, 16 Nov 1999 17:27:14 +0000 Subject: Correct wargames quote, and while we are here be a little more selective when checking if a game is valid (eg: '../../bin/csh') --- wargames/wargames.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'wargames') 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 -- cgit v1.2.3-56-ge451