JavaShuo
栏目
标签
运行shell脚本出现Bad Substitution错误
时间 2021-07-12
标签
linux
栏目
Unix
繁體版
原文
原文链接
通过sh xxx.sh运行某个shell脚本,发现出现Bad Substitution错误。 最终发现是shell脚本解释器的问题,我采用sh这个命令执行的脚本,对sh这个命令,查看其属性发现: 即最终指向的是dash这个解释器。而我们的shell脚本中,有一些数组操作,dash解释器不支持这些操作,而bash解释器支持这些操作,因此,我需要用bash解释器翻译我的shell脚本才行。 通过chm
>>阅读原文<<
相关文章
1.
Linux shell脚本执行错误:bad substitution
2.
shell脚本运行
3.
Shell脚本报错 /bin/bash^M: bad interpreter
4.
运行Maven项目时出现invalid LOC header (bad signature)错误
5.
Python脚本运行出现语法错误:indentationError:indent does not match
6.
Python脚本运行出现语法错误:IndentationError: unindent does n
7.
CentOS6 Shell脚本/bin/bash^M: bad interpreter错误解决方法
8.
Shell脚本/bin/bash^M: bad interpreter错误解决方法
9.
转 CentOS6 Shell脚本/bin/bash^M: bad interpreter错误解决方
10.
php 运行脚本shell
更多相关文章...
•
错误处理
-
RUST 教程
•
PHP PDO 错误与错误处理
-
PHP参考手册
•
☆基于Java Instrument的Agent实现
•
Kotlin学习(一)基本语法
相关标签/搜索
运行错误
运行时错误
shell脚本
substitution
bad
错误
shell脚本语法
shell脚本实例
脚本
行脚
Linux
Unix
PHP 7 新特性
PHP教程
MySQL教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
css 让chrome支持小于12px的文字
2.
集合的一点小总结
3.
ejb
4.
Selenium WebDriver API
5.
人工智能基础,我的看法
6.
Non-local Neural及Self-attention
7.
Hbuilder 打开iOS真机调试操作
8.
improved open set domain adaptation with backpropagation 学习笔记
9.
Chrome插件 GitHub-Chart Commits3D直方图视图
10.
CISCO ASAv 9.15 - 体验思科上一代防火墙
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
Linux shell脚本执行错误:bad substitution
2.
shell脚本运行
3.
Shell脚本报错 /bin/bash^M: bad interpreter
4.
运行Maven项目时出现invalid LOC header (bad signature)错误
5.
Python脚本运行出现语法错误:indentationError:indent does not match
6.
Python脚本运行出现语法错误:IndentationError: unindent does n
7.
CentOS6 Shell脚本/bin/bash^M: bad interpreter错误解决方法
8.
Shell脚本/bin/bash^M: bad interpreter错误解决方法
9.
转 CentOS6 Shell脚本/bin/bash^M: bad interpreter错误解决方
10.
php 运行脚本shell
>>更多相关文章<<