bash和shell的差别

bash和shell是linux下的不同程序,大体功能是一样的,但是命令的解释上(语句的执行)有细微的差别。

已知的不同如下

  1. if-then语句
    bash
if [ "A" == "B" ]; then

shell,];后不能有空格

if [ "A" == "B" ];then
  1. bash输出彩色字符,必须-e,sh不需要-e参数
posted @ 2020-10-09 00:29  jiftle  阅读(3187)  评论(0编辑  收藏  举报