Skip to content

Commit

Permalink
lets go ahead and "" around the $(readline)
Browse files Browse the repository at this point in the history
  • Loading branch information
abs0 committed Aug 21, 2016
1 parent 8f49555 commit 59b27ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions wargames.sh
Expand Up @@ -79,7 +79,7 @@ phase_logon()
{
prompt="LOGON: "
wopr -n "$prompt"
a=$(readline)
a="$(readline)"

case "$a" in
*"Help Logon" | *"help logon" | *Help | *help )
Expand Down Expand Up @@ -121,7 +121,7 @@ phase_logon()
phase_games()
{
prompt=
a=$(readline)
a="$(readline)"

case "$a" in
"List Games" | "list games")
Expand Down Expand Up @@ -190,7 +190,7 @@ CPU AUTH RY-345-AX3 SYSCOMP STATUS ALL PORTS ACTIVE
wopr "GREETINGS PROFESSOR FALKEN." ""
prompt=
while true ; do
a=$(readline)
a="$(readline)"
case "$a" in
# 1st pass
Hello* | hello*)
Expand Down Expand Up @@ -303,7 +303,7 @@ wopr -c 5 -n "
2. SOVIET UNION
PLEASE CHOOSE ONE: 2"
a=$(readline) # 2
a="$(readline)" # 2
wopr "" "" "" "\
AWAITING FIRST STRIKE COMMAND
-----------------------------
Expand All @@ -312,9 +312,9 @@ PLEASE LIST PRIMARY TARGETS BY
CITY AND/OR COUNTY NAME:
"
prompt=
a=$(readline)
a="$(readline)"
actual "Las Vegas"
a=$(readline)
a="$(readline)"
actual "Seattle"
sleep 0.5
clear
Expand Down

0 comments on commit 59b27ed

Please sign in to comment.