原文链接: https://blog.csdn.net/qazwsxrx/article/details/120005772
问题描述
使用VS code编写一个shell脚本,但一直报错:
syntax error near unexpected token `$’{\r’’
解决方法
参考:syntax-error-near-unexpected-token-in-r
将VS code右下角的CRLF转换为LF即可:
原文链接: https://blog.csdn.net/qazwsxrx/article/details/120005772
使用VS code编写一个shell脚本,但一直报错:
syntax error near unexpected token `$’{\r’’
参考:syntax-error-near-unexpected-token-in-r
将VS code右下角的CRLF转换为LF即可: