linux:執行.sh腳本報錯 Syntax error: "(" unexpected

現象: 原因: 兼容性問題,因爲linux將sh默認指向了dash,而不是bash 解決: #在root下面執行 dpkg-reconfigure dash,選擇no [email protected]:/home/adt/Downloads/wy# dpkg-reconfigure dash 然後重新執行.sh 腳本就可以了 [email protected]:/home/adt/Downloa
相關文章
相關標籤/搜索