ubuntu系统shell 中source: not found错误


错误: 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删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM