我用三种方式运行脚本,结果不同,你能解释一下为什么它是这样工作的吗?谢谢
这是我的剧本
#!/bin/bash
#Program:
# This program shows "Hello World!" in your screen.
echo -e "Hello World! \a\n"
exit 0
如果我用bash和运行它。/喜欢
bash sh01。上海
输出为
你好,世界!
但是,如果我使用sh like
sh sh01。上海
这就像
-你好,世界!
这里还有一些其他信息
-
操作系统:Ubuntu 16.04.3
-
类型sh->猛冲