Shell: let:not found
2013-12-07 21:52
316 查看
let:not found
原因:It's because Ubuntu uses the dash shell as default and doesn't always recognize when you try to set the shell in a script.Even if you enter "echo $SHELL" into the console it will tell you you're using /bin/bash but for some
reason it's actually using dash instead.
解决办法:
1.显式使用 dash filename.sh;
2.在命令行输入:sudo dpkg-reconfigure dash
Use dash as the default system shell(/bin/sh)? 选择“no”。
原因:It's because Ubuntu uses the dash shell as default and doesn't always recognize when you try to set the shell in a script.Even if you enter "echo $SHELL" into the console it will tell you you're using /bin/bash but for some
reason it's actually using dash instead.
解决办法:
1.显式使用 dash filename.sh;
2.在命令行输入:sudo dpkg-reconfigure dash
Use dash as the default system shell(/bin/sh)? 选择“no”。
相关文章推荐
- 编写shell时,let: not found
- shell '++'运算符出错和let: not found错误的解决
- 编写shell时,提示let:not found
- 编写shell时,let: not found
- let's encrypt 生成证书时,404 not found的错误
- 输入:adb shell 出现 error:device not found解决办法
- shell---解决shell脚本中回车换行导致command not found
- Mac执行shell脚本提示command not found的一种解决方案
- android shell 内,sh:cp not found 解决方法
- ubuntu终端执行shell脚本报command not found解决方法
- 嵌入式 Shell脚本执行时出现declare: not found的解决方法
- shell中if判断条件中使用[],[[]],(())还是test,let的比较
- shell脚本执行错误 $'\r':command not found
- adb shell 提示:error: device not found 连不上的一个解决方案
- sublime text 3编写shell脚本执行报$'\r': command not found
- linux环境变量 shell变量 command not found解决方法(转)
- shell中[$a -eq 1]提示错误 [1: command not found
- shell小记:let
- pc进入android手机shell的root权限(su: not found)
- shell find: command not found