what is the difference between sh & bash shell?

Answer Posted / tony

SH refers to Bourne Shell, which is someway the reference Shell to a lot of other Shells, and defintaly to the Bash Shell, which literally is : Bourne Again Shell. By this time and date (2015), Bash is to be preferred over Bourne, and Bourne is supposed to be limited too much ... but, still used a lot. Obviously, in a technical way, there's a lot of interesting commands that work only with Bash, not with Bourne (and presumingly, never the other way round). So, bottom line : Bourne is limited but very compatible, Bash is better but slightly limited. The latter largely depends on environments.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can shell script run on windows?

566


What are scripts in psychology?

597


How do I edit a .sh file?

624


Explain about stdin, stdout and stderr?

635


What is the use of echo in shell script?

543






What makes c shell a more preferable option than the bourne shell?

542


Is shell a scripting language?

572


State the advantages of shell scripting?

594


What is k shell?

534


How do I read a .sh file?

532


What will happen to my current process when I execute a command using exec?

538


Explain about debugging?

606


What is mac default shell?

614


Determine the output of the following command: [ -z “” ] && echo 0 || echo 1

557


Why is shell scripting important?

576