#!/bin/bash # This script will not work properly. # The until loop does not allow user to change # value of the variable used in the until loop test. # Therefore, the script will go into an "infinite loop" # Set up flag flag=0 # Assign secret name name="Murray" # Prompt user to guess name # Here is the problem >:( until [ "$name_guess" = "$name" ] do if [ $flag -ne 0 ] then printf "Incorrect: Please try again!" fi printf "\nPlease guess my name: " read name_guess flag=1 done # End of shell script