diff options
author | 1999-11-25 11:35:24 +0000 | |
---|---|---|
committer | 1999-11-25 11:35:24 +0000 | |
commit | 693b65c55b9d90193423a82a5ec827f1474f30a6 (patch) | |
tree | 6ba6744b5a51d873ca517b2e1fc0a8b47903383c | |
parent | Fix an obscure bug involving misidentified coup fourres. (diff) | |
download | wireguard-openbsd-693b65c55b9d90193423a82a5ec827f1474f30a6.tar.xz wireguard-openbsd-693b65c55b9d90193423a82a5ec827f1474f30a6.zip |
Allow arguments to games and be more selective when checking for valid games.
Idea from recent NetBSD change by abs@netbsd.
-rw-r--r-- | games/wargames/wargames.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/games/wargames/wargames.sh b/games/wargames/wargames.sh index e74fa31de7a..e66dcbe0b20 100644 --- a/games/wargames/wargames.sh +++ b/games/wargames/wargames.sh @@ -1,5 +1,5 @@ #!/bin/sh - -# $OpenBSD: wargames.sh,v 1.2 1997/04/19 06:02:55 gene Exp $ +# $OpenBSD: wargames.sh,v 1.3 1999/11/25 11:35:24 pjanzen Exp $ # $NetBSD: wargames.sh,v 1.2 1995/04/22 07:53:44 cgd Exp $ # # Copyright (c) 1985, 1993 @@ -36,11 +36,12 @@ # @(#)wargames.sh 8.1 (Berkeley) 5/31/93 # echo -n "Would you like to play a game? " -read x +read x a +x=`/usr/bin/basename $x` if [ -f /usr/games/$x ] ; then tput cl - exec /usr/games/$x + exec /usr/games/$x $a else echo "A strange game." echo "The only winning move is not to play." |