ubuntu12.04中shell脚本无法使用source的原因及解决方法
2013-03-04 13:33
666 查看
现象: 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可以用了~
原因: ls -l `which sh` 提示/bin/sh -> dash
这说明是用dash来进行解析的。
改回方法:
命令行执行:sudo dpkg-reconfigure dash
在界面中选择no
再ls -l `which sh` 提示/bin/sh -> bash
修改成功,source可以用了~
相关文章推荐
- ubuntu12.04中shell脚本无法使用source的原因及解决方法
- ubuntu12.04中shell脚本无法使用source的原因及解决方法
- ubuntu12.04中shell脚本无法使用source的原因及解决方法
- ubuntu12.04中shell脚本无法使用source的原因及解决方法
- ubuntu12.04中shell脚本无法使用source的原因及解决方法
- ubuntu12.04中shell脚本无法使用source的原因及解决方法
- ubuntu12.04中shell脚本无法使用source的原因及解决方法
- 【linux】Ubuntu中shell脚本无法使用source的原因及解决方法
- debian中shell脚本无法使用source的原因及解决方法
- shell脚本无法使用source的原因及解决方法
- shell脚本无法使用source的原因及解决方法
- 部分地区移动手机无法使用QQ邮箱IMAP收件原因的分析[附解决方法]
- Notepad++编写的shell脚本在linux下无法执行的解决方法
- Linux系统环境变量文件(/etc/profile)设置后无法使用vim、vi等命令原因以及解决方法
- 出现 JSP页面中使用JSTL标签无法解析 错误的原因及解决方法
- 170509、文本编辑器编写的shell脚本在linux下无法执行的解决方法
- 各大网站无法使用右键的原因及解决方法
- DOCKER 无法获取使用宿主机DNS 的原因,解决方法
- Ubuntu12.04无法使用vim系统剪贴板解决方法