Class Test Script
Please go through the following script and identify the defects
UPDATE:
Question
!#/bash/bin
echo Please talk to me ...
while
do
read INPUT_STRING
case INPUT_STRING
hello) echo "Hello yourself!" ;;
bye) echo "See you again!" break ;;
#) echo "Sorry, I don't understand" ;
esac
echo
echo "That's all folks!"Corrected Script
#!/bin/bash
echo "Please talk to me ..."
while true
do
read INPUT_STRING
case $INPUT_STRING
hello) echo "Hello yourself!" ;;
bye) echo "See you again!" break ;;
*) echo "Sorry, I don't understand" ;;
esac
echo
echo "That's all folks!"Key
Last updated