使用sh执行bash脚本的奇怪问题

在同一个目录下有两个脚本,a.sh和b.sh,脚本内容以下: a.sh:html echo "test for a" source b.sh b.sh:web echo "test for b" 使用bash a.sh 返回正确结果。 而使用sh a.sh返回结果以下: test for a a.sh: line 2: source: b.sh: file not found 明显脚本运行过程当中
相关文章
相关标签/搜索