From a8150aafd2fa3bed469f0c1d62db80dde5ebbd2b Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Mon, 22 Feb 2016 20:11:29 -0500 Subject: [PATCH 1/2] sh: add page --- pages/common/sh.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/sh.md diff --git a/pages/common/sh.md b/pages/common/sh.md new file mode 100644 index 000000000..699823a3c --- /dev/null +++ b/pages/common/sh.md @@ -0,0 +1,20 @@ +# sh + +> Bourne shell. +> The standard command language interpreter. + +- Start interactive shell: + +`sh` + +- Execute a command: + +`sh -c {{command}}` + +- Run commands from a file: + +`sh {{file.sh}}` + +- Run commands from STDIN: + +`sh -s` From 8aaaec66c127ffbc510743fc3a2f951548945bd0 Mon Sep 17 00:00:00 2001 From: Hayden Schiff Date: Mon, 22 Feb 2016 20:14:41 -0500 Subject: [PATCH 2/2] bash: parity with `sh` --- pages/common/bash.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/common/bash.md b/pages/common/bash.md index e5cce5582..2e2aa97c4 100644 --- a/pages/common/bash.md +++ b/pages/common/bash.md @@ -3,18 +3,18 @@ > Bourne-Again SHell. > `sh`-compatible command line interpreter. -- Start interactive command line interpreter: +- Start interactive shell: `bash` -- Execute command passed as parameter: +- Execute a command: `bash -c {{command}}` -- Run commands from file (script): +- Run commands from a file: -`bash {{file}}` +`bash {{file.sh}}` -- Run commands from file and print them as they are executed: +- Run commands from STDIN: -`bash -x {{file}}` +`bash -s`