What is the output of the following program?
b= [ -n $b ]
echo $?
[ -z $b ]
1 1
2 2
0 0
0 1
An error will occur
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
What is the error in the following program?
Which one is true about 'until' loop?
If x=11 and y=6, then what is the exit status of the following expression?
Output of the following program?
What's the output when directory name 'home' is given as input?
Suppose you are writing a shell script that accepts five positional parameters from the terminal. What will be the effect of using statement 'shift 1' in your shell script and then executing the shell script?
Which loop is invalid?