现象: shell脚本中source aaa.sh时提示 source: not found


原因: ls -l `which sh` 提示/bin/sh -> dash

这说明是用dash来进行解析的。


改回方法:

命令行执行:sudo dpkg-reconfigure dash

在界面中选择no

再ls -l `which sh` 提示/bin/sh -> bash


修改成功,source可以用了~

相关文章:

  • 2021-12-20
  • 2021-06-03
  • 2022-02-22
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
猜你喜欢
  • 2021-07-04
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
相关资源
相似解决方案