@@ -136,13 +136,13 @@ PS:
136
136
137
137
在这个库中的` Shell ` 脚本:
138
138
139
- - 统一使用` Bash 3+ ` ;
139
+ - 统一使用` Bash 3.2 + ` ;
140
140
- 面向生产环境,尽可能使用严谨安全的开发方式。
141
141
142
142
` Shell ` 用` Bash ` 的原因是:
143
143
144
144
- 目前仍然是主流的` Shell ` ,并且在不同环境基本上都缺省部署了。
145
- - 在[ ` Google ` 的` Shell ` 风格指南] ( https://zh-google-styleguide.readthedocs.io/en/latest/google-shell-styleguide/background/ ) 中,明确说到了:` Bash ` 是** 唯一** 被允许执行的` shell ` 脚本语言。
145
+ - 在[ ` Google ` 的` Shell ` 风格指南] ( https://zh-google-styleguide.readthedocs.io/en/latest/google-shell-styleguide/background.html#shell ) 中,明确说到了:` Bash ` 是** 唯一** 被允许执行的` shell ` 脚本语言。
146
146
- 统一用` Bash ` ,可以避免不同` Shell ` 之间差异所带来的风险与没有收益的复杂性。
147
147
- 有大量的` Shell ` 实现,` sh ` 、` bash ` 、` zsh ` 、` fish ` 、` csh ` 、` tcsh ` 、` ksh ` 、` ash ` 、` dash ` ……
148
148
- 不同的` Shell ` 有各种差异,深坑勿入。
@@ -155,7 +155,7 @@ PS: 虽然交互`Shell`个人已经使用`Zsh` + [`oh-my-zsh`](https://ohmyz.sh/
155
155
> 更多资料参见 [ 子文档] ( docs/developer-guide.md ) 。
156
156
157
157
- 🛠️ 开发规范与工具
158
- - [ ` Google Shell Style Guide ` ] ( https://google.github.io/styleguide/shell.xml ) | [ 中文版] ( https://zh-google-styleguide.readthedocs.io/en/latest/google-shell-styleguide/background/ )
158
+ - [ ` Google Shell Style Guide ` ] ( https://google.github.io/styleguide/shell.xml ) | [ 中文版] ( https://zh-google-styleguide.readthedocs.io/en/latest/google-shell-styleguide/contents.html )
159
159
- [ ` koalaman/shellcheck ` ] ( https://github.com/koalaman/shellcheck ) : ` ShellCheck ` , a static analysis tool for shell scripts
160
160
- [ ` mvdan/sh(shfmt) ` ] ( https://github.com/mvdan/sh ) : ` shfmt ` formats shell programs
161
161
- 👷 ** ` Bash/Shell ` 最佳实践与安全编程** 文章
@@ -172,7 +172,7 @@ PS: 虽然交互`Shell`个人已经使用`Zsh` + [`oh-my-zsh`](https://ohmyz.sh/
172
172
力荐!说明简单直接结构体系的佳作,专业` Bash ` 编程必备!且16年的第二版更新到了新版的` Bash 4 `
173
173
- [ 《学习bash》] ( https://book.douban.com/subject/1241361/ ) 上面那本的展开版
174
174
- 官方资料
175
- - [ ` bash man ` ] ( https://linux.die.net/man/1 /bash ) | [ 中文版] ( http://ahei.info/chinese-bash-man.htm )
175
+ - [ ` bash man ` ] ( https://manned.org /bash ) | [ 中文版] ( http://ahei.info/chinese-bash-man.htm )
176
176
- [ Bash Reference Manual - gnu.org] ( http://www.gnu.org/software/bash/manual/ ) | [ 中文版] ( https://yiyibooks.cn/Phiix/bash_reference_manual/bash%E5%8F%82%E8%80%83%E6%96%87%E6%A1%A3.html )
177
177
Bash参考手册,讲得全面且有深度,比如会全面地讲解不同转义的区别、命令的解析过程,这有助统一深入的方式认识Bash整个执行方式和过程。这些内容在其它书中往往不会讲(因为复杂难于深入浅出的讲解),但却一通百通的关键。
178
178
- [ Advanced Bash-Scripting Guide] ( https://hangar118.sdf.org/p/bash-scripting-guide/index.html ) : An in-depth exploration of the art of shell scripting.
0 commit comments