After running this program, as you press ‘s’, what will be the output of the program?
A. Sanfoudry
B. You did not press s
C. Program will generate an error message
D. None of the mentioned
Code:
#!/bin/bash
echo "press 's' to print 123hoidap"
read var
if $var=s
then
echo "123hoidap"
else
echo "You did not press s"
fi
exit 0
B. You did not press s
C. Program will generate an error message
D. None of the mentioned