解决shell 报错:syntax error: unexpected end of file

debug  shell:执行

sh -x test.sh 
vi test.sh
:set fileformat=unix
:wq
解决问题原因是我在windows pycharm 写的格式不符合unix导致语法错误

猜你喜欢

转载自www.cnblogs.com/SunshineKimi/p/12356264.html