ubuntu错误 let: not found解决办法
来源:互联网 发布:qq input for mac 编辑:程序博客网 时间:2024/05/16 12:42
错误描述:运行shell脚本,报错误
test.sh: 4: test.sh: 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.
use:
sudo dpkg-reconfigure dash
<password>
and when you get the option select "no" to actually use bash instead of dash
阅读全文
0 0
- ubuntu错误 let: not found解决办法
- ubuntu出现 let: not found
- class not found错误解决办法
- Shell: let:not found
- ubuntu libtool_args+=: not found 解决办法
- ubuntu libtool_args+=: not found 解决办法
- CADebugPrintf.h file not found错误解决办法
- hive Version information not found 错误解决办法
- ld: file not found 错误解决办法
- CADebugPrintf.h file not found错误解决办法
- 'system': identifier not found错误的解决办法
- cryptogen tool not found. exiting错误解决办法
- ubuntu上pushd命令执行错误(/bin/sh: 1: pushd: not found)解决办法
- ubuntu安装EnvironmentError: mysql_config not found错误
- ubuntu安装EnvironmentError: mysql_config not found错误
- 在旧版本Ubuntu系统中使用“apt-get update”出现“404 Not Found”错误的解决办法
- shell '++'运算符出错和let: not found错误的解决
- let's encrypt 生成证书时,404 not found的错误
- HDU 1338 Game Prediction
- AJAX-(2)使用方法
- java swing 之 JScrollPane(滚动面板)的使用
- 牛客网《剑指Offer》 调整数组顺序使奇数位于偶数前面
- servlet以json格式向ajax传送数据并处理
- ubuntu错误 let: not found解决办法
- for循环语句以及break和continue的使用
- 从1到n的阶乘之和
- Github Desktop 入门
- 智能排班,求大神来帮忙给一个完整的思路!!!
- Spring学习笔记(一) --- Hello Spring
- NestedScrollView+RecyclerView优雅的解决滑动冲突问题
- mydumper编译失败
- DBUtils