新西兰小绵羊

博客园 首页 新随笔 联系 订阅 管理

1. bash或sh执行,会另开一个shell。脚本不需要有执行权限。

2. source或.执行,会在当前shell执行。脚本不需要执行权限。

3. ./执行,会另开一个shell。但脚本需要执行权限。

posted on 2019-01-28 17:41  新西兰小绵羊  阅读(217)  评论(0)    收藏  举报