difference-between-sh-and-bash

今天遇到了一个问题,再使用let的时候
/bin/sh 提示没有关键字

以前一直以为/bin/sh/bin/bash是一样。
遇到了这个问题,我查了一下:

bash and sh are two different shells. Basically bash is sh, with more features and better syntax. Most commands work the same, but they are different.
I would use bash, as that is pretty much the standard (or at least most common, from my experience). In fact, problems arise when a bash script will use #!/bin/sh because the script-maker assumes the link is to bash

在使用/bin/sh 或者/bin/bash的时候要注意兼容性

查看当前页面的所有

cat /etc/shell