1.

Which of the following option is used with a set for debugging shell scripts?(a) -a(b) -x(c) -d(d) -eThe question was posed to me in an online quiz.This question is from Shell Programming using Various Commands in portion Essential Shell Programming of Unix

Answer»

Correct choice is (B) -x

To explain I would say: As we know that set command is used for ASSIGNING values to POSITIONAL parameters, it also serves as debugging tool. For this purpose, we’ve to USE -x OPTION with it.



Discussion

No Comment Found

Related InterviewSolutions