Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following shell script: echo - e What is your favorite color? - - > c read REPLY if [ $REPLY
Consider the following shell script:
echo e "What is your favorite color?c
read REPLY
if $REPLY" "red" o $REPLY" "blue"
then
echo "The answer is red or blue."
else
echo "The answer is not red nor blue."
fi
What would be displayed if a user executes this shell script and answers Blue when prompted?
Question options:
The answer is red or blue.
The answer is not red nor blue.
The code would cause an error.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started