目录

前言

李柱明博客:https://www.cnblogs.com/lizhuming/p/15486913.html

小笔记

!/bin/sh 是指向默认的 shell,如 bash。

echo $SHELL 命令会显示默认的 shell。

但是因为 ubuntu 默认的 sh 是连接到 dash 的,又因为 dash 跟 bash 的不兼容所以出错了。

执行时可以把 !/bin/sh 中的 sh 换成 bash。

或者关闭 linux 的 dash:

  • sudo dpkg-reconfigure dash
  • 选择 no。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-01
  • 2021-11-30
  • 2021-05-31
  • 2022-12-23
  • 2023-02-04
  • 2021-07-26
猜你喜欢
  • 2022-12-23
  • 2021-06-24
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
相关资源
相似解决方案