]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
Permit Prof. Steven Falcon [sic] to play hals_end(6) (or, more
authorleot <leot@NetBSD.org>
Sun, 21 May 2017 16:47:26 +0000 (16:47 +0000)
committerleot <leot@NetBSD.org>
Sun, 21 May 2017 16:47:26 +0000 (16:47 +0000)
seriously: also permit games that contain underscores to be invoked
via wargames(6))

wargames/wargames.sh

index c8172a6c45cd26422c7ae0961265f87b4e06995f..92d3ebb5dc9f260c5de07f673ab03e5f9f67d91a 100644 (file)
@@ -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