bash vs sh | What is the difference

Posted by Saif Bechan on Super User See other posts from Super User or by Saif Bechan
Published on 2010-03-30T15:54:03Z Indexed on 2010/03/30 16:03 UTC
Read the original article Hit count: 533

Filed under:
|
|

In using i see 2 types of code

#!/usr/bin/sh

and

#!/user/bin/bash

I have Googled this and the opinions vary a lot. The explanation I have seen on most websites is that sh is older than bash, and that there is no real difference.

Does someone know the difference between these and can give a practical example when to use either one of them.

I highly doubt that there is no real difference, because then having to things that do the exact same thing would be just

© Super User or respective owner

Related posts about unix

Related posts about shell