From 9ecfc2bd9dcb5d75a74e86894b6d1c405ddb77c6 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Thu, 1 Sep 2016 14:31:38 +0100 Subject: [PATCH 1/2] bash: add --version --- pages/common/bash.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/bash.md b/pages/common/bash.md index 2e2aa97c4..eb9140e7b 100644 --- a/pages/common/bash.md +++ b/pages/common/bash.md @@ -18,3 +18,7 @@ - Run commands from STDIN: `bash -s` + +- Print the version information of bash (use `echo $BASH_VERSION` to show just the version string): + +`bash --version` From 0f16059d3a6ca27c2cba97c39460335a72a71b96 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sun, 4 Sep 2016 20:59:10 +0100 Subject: [PATCH 2/2] bash: quote command passed with -c --- pages/common/bash.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/bash.md b/pages/common/bash.md index eb9140e7b..1bb7e681d 100644 --- a/pages/common/bash.md +++ b/pages/common/bash.md @@ -9,7 +9,7 @@ - Execute a command: -`bash -c {{command}}` +`bash -c "{{command}}"` - Run commands from a file: