From 46676178ea8d507709e4776f21b4e1316ea9e90c Mon Sep 17 00:00:00 2001 From: lincc <46962923+blueskyson@users.noreply.github.com> Date: Tue, 6 Jul 2021 18:35:31 +0800 Subject: [PATCH] bash: add traditional Chinese translation (#6191) --- pages.zh_TW/common/bash.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pages.zh_TW/common/bash.md diff --git a/pages.zh_TW/common/bash.md b/pages.zh_TW/common/bash.md new file mode 100644 index 0000000000..cbe4a6aa7e --- /dev/null +++ b/pages.zh_TW/common/bash.md @@ -0,0 +1,33 @@ +# bash + +> Bourne-Again SHell. 一個與 `sh` 兼容的命令列。 +> 參照 `histexpand` 以使用 history expansion 特性。 +> 更多資訊: . + +- 開啟互動式 shell: + +`bash` + +- 執行指令然後退出: + +`bash -c "{{指令}}"` + +- 執行腳本: + +`bash {{sh檔}}` + +- 執行腳本,每個指令執行之前先在命令列印出該指令: + +`bash -x {{sh檔}}` + +- 執行腳本,執行錯誤時,終止執行該腳本: + +`bash -e {{sh檔}}` + +- 從標準輸入 (stdin) 讀取並執行指令: + +`bash -s` + +- 在終端機印出 bash 的版本資訊 (`$BASH_VERSION` 只包含版本號): + +`bash --version`