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
>>更多相關文章<<