what is the difference between sh & bash shell?



what is the difference between sh & bash shell?..

Answer / 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

More Shell Script Interview Questions

How to print some text on to the screen?

2 Answers  


What are the advantages of bash over all other shells?

1 Answers  


c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l

0 Answers  


Explain about return code?

0 Answers  


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

0 Answers  






How are shells born?

0 Answers  


What does $1 mean in bash?

0 Answers  


How do scripts work?

0 Answers  


how to read systems current date and time

4 Answers  


What is path in shell script?

0 Answers  


How to use arguments in a script?

0 Answers  


Script S1 (which copies .dat files from one directory1 to another directory2) run continuously. Write Script S2 which kills S1 first, compresses all .dat files in directory1 and directory2 successfully, re-run Script S1 and stops self i.e. S2.

2 Answers   IBM, TCS,


Categories