It would result in an error.
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?
Correct Answer:
The positional parameters would be shifted by one position towards left i.e. parameter 1 will have value of parameter 2, parameter 2 will have value of parameter 3 and so on.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Unix Shell Script MCQ Questions