ubuntu12.04中shell脚本没法使用source的缘由及解决方法

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


缘由: ls -l `which sh` 提示/bin/sh -> dashbash

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


改回方法: 
命令行

命令行执行:sudo dpkg-reconfigure dash
orm

在界面中选择noit

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


修改为功,source能够用了~脚本

相关文章
相关标签/搜索