From d155a6dcf5651927a54397bfe0e77466e1e87b4f Mon Sep 17 00:00:00 2001 From: Andy Chen Date: Wed, 14 Aug 2019 21:41:34 +0800 Subject: [PATCH] bash: add zh translation --- pages.zh/common/bash.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pages.zh/common/bash.md diff --git a/pages.zh/common/bash.md b/pages.zh/common/bash.md new file mode 100644 index 000000000..0d9f08008 --- /dev/null +++ b/pages.zh/common/bash.md @@ -0,0 +1,37 @@ +# bash + +> Bourne-Again SHell. +> 兼容`sh`的命令行解释器. +> 更多信息(English): . + +- 启动交互式shell: + +`bash` + +- 执行命令: + +`bash -c "{{command}}"` + +- 执行脚本文件: + +`bash {{file.sh}}` + +- 执行脚本文件, 并将所有执行过的命令输出到终端: + +`bash -x {{file.sh}}` + +- 执行脚本文件, 并在第一个错误处终止: + +`bash -e {{file.sh}}` + +- 从输入(`stdin`)读取命令: + +`bash -s` + +- 将跟随的所有选项原样传递到要执行的脚本文件(可与`-s`选项共用来将选项传递到来自输入的命令/脚本) + +`bash --` + +- 打印bash的版本信息 (使用`echo $BASH_VERSION`来获得纯粹的版本字符串): + +`bash --version`