【环境】linux shell 链接问题

前言

李柱明博客: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。
原文地址:https://www.cnblogs.com/lizhuming/p/15486913.html