4
运行“ bash script.sh”和“ ./script.sh”有什么区别?
如果script.sh只是典型的东西 #!/bin/bash echo "Hello World!" 有运行脚本的首选方法吗?我认为您首先必须对其进行chmod修改,使其可以执行?
与其他Bourne / POSIX shell相对,GNU的Bourne Again SHell特有的问题。对于一般关于Unix shell的问题,请改用/ shell标记。