format zh translations

This commit is contained in:
Ein Verne
2019-10-18 10:33:27 +08:00
committed by Starbeamrainbowlabs
parent e90e6bdf6b
commit 7f995941ed
183 changed files with 1086 additions and 1101 deletions

View File

@@ -1,37 +1,37 @@
# bash
> Bourne-Again SHell.
> 兼容`sh`的命令行解释器.
> 更多信息(English): <https://gnu.org/software/bash>.
> 兼容`sh`的命令行解释器
> 更多信息 (English): <https://gnu.org/software/bash>.
- 启动交互式shell:
- 启动交互式 shell:
`bash`
- 执行命令:
- 执行命令
`bash -c "{{command}}"`
- 执行脚本文件:
- 执行脚本文件
`bash {{file.sh}}`
- 执行脚本文件, 并将所有执行过的命令输出到终端:
- 执行脚本文件并将所有执行过的命令输出到终端
`bash -x {{file.sh}}`
- 执行脚本文件, 并在第一个错误处终止:
- 执行脚本文件并在第一个错误处终止
`bash -e {{file.sh}}`
- 从输入(`stdin`)读取命令:
- 从输入 (`stdin`) 读取命令
`bash -s`
- 将跟随的所有选项原样传递到要执行的脚本文件(可与`-s`选项共用来将选项传递到来自输入的命令/脚本)
- 将跟随的所有选项原样传递到要执行的脚本文件可与`-s`选项共用来将选项传递到来自输入的命令 / 脚本
`bash --`
- 打印bash的版本信息 (使用`echo $BASH_VERSION`来获得纯粹的版本字符串):
- 打印 bash 的版本信息 使用`echo $BASH_VERSION`来获得纯粹的版本字符串:
`bash --version`