2

Shell脚本进阶

 1 year ago
source link: https://lrita.github.io/2020/04/30/shell-program/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Shell脚本进阶 — 源代码

最近写了不少的 shell 脚本,也收集了一些提升 shell 编程的文章,感觉有一些确实不错的内容可以进行分享。

首先,编写可靠 bash 脚本的一些技巧中列出了几条通用的建议,非常值得借鉴。

其次,Bash Pitfalls中列出了诸多 shell 中容易踩坑的地方,需要多加注意这些细节。这里有其翻译版本:

再次,就是静态分析工具shellcheck,可以发现一些 shell 脚本中场景的易犯错误,并且还会给出链接,详细说明错误的详情。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK