What is the difference between bash and sh

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/04/22 13:13 UTC
Read the original article Hit count: 327

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