问题:shell脚本里加source命令报错 sh: 1: source: not found
解决:
$ls -l which sh
/bin/sh -> dash
$sudo dpkg-reconfigure dash #Select “no” when you’re asked
[…]
$ls -l which sh
/bin/sh -> bash
问题:shell脚本里加source命令报错 sh: 1: source: not found
解决:
$ls -l which sh
/bin/sh -> dash
$sudo dpkg-reconfigure dash #Select “no” when you’re asked
[…]
$ls -l which sh
/bin/sh -> bash