What is the use of script interpreter in shell scripting?
Answer Posted / tony
It's a forced attempt to try and let the script run with the Shell it was designed for. If the Shell is missing from a given system (which is unlikely if the Shell is a popular one), the script would fail. But, if the Shell is not a popular one, it will fail for a good reason, because the unpopular Shell has a high chance of not being compatible. Also, it's a method of indicating the system on which the script was written and intended for, just as a remark to any reader.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the syntax of "nested if statement" in shell scripting?
Explain about stdin, stdout and stderr?
Is cmd a shell?
How to get the first line from a file using just the terminal?
How to debug the problems encountered in the shell script/program?
What is bash shell command?
How will you find the 99th line of a file using only tail and head command?
How to pass an argument to a script?
How does path variable work?
What is shell scripting used for?
What is path in shell script?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
What is echo $shell?
What is the default ubuntu terminal?
What is the use of break command?