Liunx 遇到”unexpected end of file“解决
程序员文章站
2022-05-30 16:37:17
...
syntax error: unexpected end of file
记个笔记
进入脚本中,执行一下命令
:set ff
如果页面展示 fileformat=dos
那恭喜你,和我遇到的问题一样
解决方案:
执行下面这个命令
:set ff=unix
保存退出就可以了
推荐阅读
-
PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法_php技巧
-
PHP Parse Error: syntax error, unexpected $end 错误的解决办
-
PHP错误Parse error: syntax error, unexpected end of file in_PHP
-
PHP Parse error: syntax error, unexpected end of file in line70
-
PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法
-
gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpect
-
PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法
-
错误解决:no newline at end of file
-
PHP Parse Error: syntax error, unexpected $end 错误的解决办法
-
亲测解决npm ERR! Unexpected end of JSON input while parsing near...的方法