bash和shell的差别

时间:2020-10-09 20:46:19   收藏:0   阅读:32

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

已知的不同如下

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

shell,];后不能有空格

if [ "A" == "B" ];then
  1. bash输出彩色字符,必须-e,sh不需要-e参数
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!