Module Name: src Committed By: leot Date: Sun May 21 16:47:27 UTC 2017
Modified Files: src/games/wargames: wargames.sh Log Message: Permit Prof. Steven Falcon [sic] to play hals_end(6) (or, more seriously: also permit games that contain underscores to be invoked via wargames(6)) To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/games/wargames/wargames.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/games/wargames/wargames.sh diff -u src/games/wargames/wargames.sh:1.4 src/games/wargames/wargames.sh:1.5 --- src/games/wargames/wargames.sh:1.4 Wed Sep 19 04:54:06 2001 +++ src/games/wargames/wargames.sh Sun May 21 16:47:26 2017 @@ -1,5 +1,5 @@ #!/bin/sh - -# $NetBSD: wargames.sh,v 1.4 2001/09/19 04:54:06 lukem 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. @@ -37,7 +37,7 @@ echo -n "Would you like to play a game? " read x -x=`echo $x | sed 's/[^a-z0-9]//g'` +x=`echo $x | sed 's/[^a-z0-9_]//g'` if [ -f /usr/games/$x ] ; then tput cl