Merge pull request #794 from oxguy3/patch-8

Add sh
waldyrious/alt-syntax
Leandro Ostera 2016-02-23 11:58:59 +01:00
commit 5c56f6ee11
2 changed files with 26 additions and 6 deletions

View File

@ -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`

20
pages/common/sh.md Normal file
View File

@ -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`