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

Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

0 Answers   TCS,


Suppose you execute a command using exec, what will be the status of your current process in the shell?

0 Answers  


What is basename in shell script?

0 Answers  


What are different types of shell?

0 Answers  


There are three departments A,B and C.Write a query to display the names of all the persons( in departments other than A) who are paid higher than the person receiving the lowest salary in DEPT A

1 Answers   Wipro,


What is in a script?

0 Answers  


How do I stop script errors?

0 Answers  


what are bootlevel in linux?which level is booting by default.

5 Answers   Symphony,


What are the default permissions of a file when it is created?

0 Answers  


How do you debug a script?

0 Answers  


In a file , how to retrieve the lines which are the multiples of 50 ? like 50,100,150th lines etc.

9 Answers   Amazon,


How do scripts work?

0 Answers  


Categories