mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-15 15:35:53 +02:00
dash: refresh page (#7981)
This commit is contained in:
parent
1c1cc911f3
commit
1a44a5ebd4
1 changed files with 11 additions and 7 deletions
|
@ -7,22 +7,26 @@
|
||||||
|
|
||||||
`dash`
|
`dash`
|
||||||
|
|
||||||
- Execute a command and then exit:
|
- Execute specific [c]ommands:
|
||||||
|
|
||||||
`dash -c "{{command}}"`
|
`dash -c "{{echo 'dash is executed'}}"`
|
||||||
|
|
||||||
- Execute a script:
|
- Execute a specific script:
|
||||||
|
|
||||||
`dash {{path/to/script.sh}}`
|
`dash {{path/to/script.sh}}`
|
||||||
|
|
||||||
- Run commands from a script, printing each command before executing it:
|
- Check a specific script for syntax errors:
|
||||||
|
|
||||||
|
`dash -n {{path/to/script.sh}}`
|
||||||
|
|
||||||
|
- Execute a specific script while printing each command before executing it:
|
||||||
|
|
||||||
`dash -x {{path/to/script.sh}}`
|
`dash -x {{path/to/script.sh}}`
|
||||||
|
|
||||||
- Execute commands from a script, stopping at the first error:
|
- Execute a specific script and stop at the first [e]rror:
|
||||||
|
|
||||||
`dash -e {{path/to/script.sh}}`
|
`dash -e {{path/to/script.sh}}`
|
||||||
|
|
||||||
- Read and execute commands from stdin:
|
- Execute specific commands from stdin:
|
||||||
|
|
||||||
`dash -s`
|
`{{echo "echo 'dash is executed'"}} | dash`
|
||||||
|
|
Loading…
Add table
Reference in a new issue