bash, dash, fish, ksh, rbash, sh, zsh: refresh (#5714)

This commit is contained in:
bl-ue
2021-04-14 10:07:21 -04:00
committed by GitHub
parent 7755ac87fb
commit 16e4ed5c89
9 changed files with 100 additions and 73 deletions

28
pages/common/dash.md Normal file
View File

@@ -0,0 +1,28 @@
# dash
> Debian Almquist Shell, a modern, POSIX-compliant implementation of `sh` (not Bash-compatible).
> More information: <https://manned.org/dash>.
- Start an interactive shell session:
`dash`
- Execute a command and then exit:
`dash -c "{{command}}"`
- Execute a script:
`dash {{path/to/script.sh}}`
- Run commands from a script, printing each command before executing it:
`dash -x {{path/to/script.sh}}`
- Execute commands from a script, stopping at the first error:
`dash -e {{path/to/script.sh}}`
- Read and execute commands from stdin:
`dash -s`