/bin/sh
with /bin/bash
the distinction, the :
intercept string is not POSIX
standard.
Difference
sh
General set bash
of soft chains (symlink)
[plain] view plain copy print?
- Ls-l/bin/sh
- lrwxrwxrwx 1 root root 4 Sep 04:45/bin/sh, Dash
- In a generic Linux system (exceptions
FreeBSD
, OpenBSD
etc.), using sh
the call execution script is equivalent to bash
the open POSIX
Standard mode
- Which means
/bin/sh
/bin/bash --posix
Therefore, the differences between them are from POSIX
the standard mode and bash
the difference, such as with the :
interception of strings, not used let
, the wrong interrupt, etc., in the use of the need to pay attention to.
Reference
- [difference between SH and bash] Http://stackoverflow.com/questions/5725296/difference-between-sh-and-bash
- [The difference between/bin/bash and/bin/sh] http://www.cppblog.com/erran/archive/2012/05/24/176038.aspx
- [#!/bin/sh and #!/bin/bash] http://fanli7.net/a/bianchengyuyan/_NET/20130916/424894.html
The difference between/bin/sh and/bin/bash