bash和shell的关系

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

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

function foo () {

}

foo () {

}

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

原文地址:https://www.cnblogs.com/lixiaolun/p/7514382.html