bash是borne again shell的缩写,它是shell的一种,Linux上默认采用的是bash。

shell脚本中的方法带不带function的区别,例如:

function foo () {

}

foo () {

}

功能完全一样, 区别是第二种兼容性更好。

相关文章:

  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2021-08-09
  • 2021-08-20
猜你喜欢
  • 2021-07-27
  • 2021-12-05
  • 2022-01-22
  • 2021-07-09
  • 2021-11-28
  • 2021-08-21
  • 2022-12-23
相关资源
相似解决方案