#!/bin/bash   echo &quot;press 's' to print Sanfoundry&quot;   read var   if $var=s   then   echo &quot;Sanfoundry&quot;   else   echo &quot;You did not press s&quot;   fi   exit 0
A. Sanfoudry
B. You did not press s
C. program will generate an error message
D. none of the mentioned
Answer:A
#!/bin/bash   echo &quot;press 's' to print Sanfoundry&quot;   read var   if $var=s   then   echo &quot;Sanfoundry&quot;   else   echo &quot;You did not press s&quot;   fi   exit 0
A. Sanfoudry B. You did not press s C. program will generate an error message D. none of the mentioned
Explanation:The condition of if statement must be in square brackets.