shell脚本编写中同样命令直接执行正确,脚本执行报错
sh test.sh &执行shell脚本,会报一些语法错误,例如:syntax error: unmatched 'while' 但是实际语法并无错误,在脚本外同样的命令是可以正确执行的 ...
sh test.sh &执行shell脚本,会报一些语法错误,例如:syntax error: unmatched 'while' 但是实际语法并无错误,在脚本外同样的命令是可以正确执行的 ...