From 1a44a5ebd4e0017d15b1fc994c8b9884fd9a6d09 Mon Sep 17 00:00:00 2001 From: Emily Grace Seville Date: Sun, 23 Oct 2022 06:08:14 +1000 Subject: [PATCH] dash: refresh page (#7981) --- pages/common/dash.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/pages/common/dash.md b/pages/common/dash.md index a183bf6377..d0dd62ce84 100644 --- a/pages/common/dash.md +++ b/pages/common/dash.md @@ -7,22 +7,26 @@ `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}}` -- 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}}` -- 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}}` -- Read and execute commands from stdin: +- Execute specific commands from stdin: -`dash -s` +`{{echo "echo 'dash is executed'"}} | dash`