jiansoung / issues-list

记录日常学习和开发遇到的问题。欢迎评论交流:)
https://github.com/jiansoung/issues-list/issues
MIT License
14 stars 0 forks source link

Difference between sh and bash #2

Open jiansoung opened 6 years ago

jiansoung commented 6 years ago

Difference between sh and bash

OP: https://stackoverflow.com/questions/5725296/difference-between-sh-and-bash

sh & bash

sh is a specification, not an implementation.

bash started as an sh-compatible implementation.

Which one to use

For my own scripts, I prefer sh for the following reasons:

References

  1. Difference between sh and bash
  2. Roman Cheplyaka's answer
  3. Roman Cheplyaka