錯誤: shell腳本中含有source命令運行時提示 source: not found
-
測試:
運行ls -l /bin/sh
后顯示/bin/sh -> dash
這說明是用dash來進行解析的。 -
解決方案:
命令行執行:dpkg-reconfigure dash
(需要root權限)
在界面中選擇no
再運行ls -l /bin/sh
后顯示/bin/sh -> bash
錯誤: shell腳本中含有source命令運行時提示 source: not found
測試:
運行 ls -l /bin/sh
后顯示/bin/sh -> dash
這說明是用dash來進行解析的。
解決方案:
命令行執行:dpkg-reconfigure dash
(需要root權限)
在界面中選擇no
再運行ls -l /bin/sh
后顯示/bin/sh -> bash
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。