Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/wargames Permit Prof. Steven Falcon [sic] to play hals...



details:   https://anonhg.NetBSD.org/src/rev/0e7aa3395ee4
branches:  trunk
changeset: 824064:0e7aa3395ee4
user:      leot <leot%NetBSD.org@localhost>
date:      Sun May 21 16:47:26 2017 +0000

description:
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))

diffstat:

 games/wargames/wargames.sh |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r d0de5ea31ab0 -r 0e7aa3395ee4 games/wargames/wargames.sh
--- a/games/wargames/wargames.sh        Sun May 21 15:36:37 2017 +0000
+++ b/games/wargames/wargames.sh        Sun May 21 16:47:26 2017 +0000
@@ -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



Home | Main Index | Thread Index | Old Index