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

已知的不同如下

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

shell,];后不能有空格

if [ "A" == "B" ];then
  1. bash输出彩色字符,必须-e,sh不需要-e参数

相关文章:

  • 2022-01-05
  • 2022-12-23
  • 2022-01-23
  • 2021-08-09
  • 2021-08-20
  • 2022-01-08
  • 2021-06-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2021-08-25
相关资源
相似解决方案