1.

Which of the following shell doesn’t support the command substitution using $ recommended by POSIX?(a) Korn(b) bash(c) C(d) bourneThis question was addressed to me by my school teacher while I was bunking the class.This question is from Command Substitution and Shell Variables in chapter The Shell of Unix

Answer»

Right option is (d) bourne

Easy explanation: Whether or not we USE POSIX NOTATION for command substitution is something up to the USER. But we should make sure that we do not have to run our SHELL scripts with the Bourne shell because $(command) is not SUPPORTED by Bourne shell.



Discussion

No Comment Found

Related InterviewSolutions