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


Please Help Members By Posting Answers For Below Questions

How do scripts work?

793


What is the equivalent of a file shortcut that we have a window on a linux system?

826


Is powershell a bash?

758


What can scripts do?

838


What happens when you type ls?

755


What are the different variables present in linux shell?

792


Which is better perl or shell scripting?

766


Is shell scripting easy to learn?

761


Write a command sequence to find the count of each word?

742


What is the best shell scripting language?

764


Why is the use of shell script?

749


What is the syntax of "nested if statement" in shell scripting?

818


is this growing field and what is average package in this?

2081


What is scripting autism?

916


What is the significance of $#?

795