What is the error in the following loop statement?
while [ $1 -gt 10 -a \($2 -o -w $3 \) ]
There is no error
( ) brackets are to be used instead of []
{} brackets are to be used instead of []
One cannot use -gt and -o in the same expression
One cannot use -o and -w in the same expression
Correct Answer:
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Unix Shell Script Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Unix Shell Script MCQ Questions
The statement z=`expr 5 / 2` would store which value in z?
The expression expr -2 % 7 evaluates to:
Which variable name is invalid?
Which assignment is illegal?
On executing the statement: set -3 + 1
What is the output of the following program?
What's the error in the following program?
Which of the following lines have an error?
Which of the following is true about the 'continue' statement?