linux里source、sh、bash、./有什么区别
https://www.cnblogs.com/pcat/p/5467188.html
source . 这两个是一样的 。在当前shell运行脚本。脚本不需要 执行权限。
sh 在子shell运行脚本。脚本不需要 执行权限。
./ 在子shell运行脚本,脚本需要 执行权限(x)
https://www.cnblogs.com/pcat/p/5467188.html
source . 这两个是一样的 。在当前shell运行脚本。脚本不需要 执行权限。
sh 在子shell运行脚本。脚本不需要 执行权限。
./ 在子shell运行脚本,脚本需要 执行权限(x)