summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-08-22 21:55:01 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-08-22 22:01:54 +0200
commitb7638754c0856b1bb5f911985190419ecb5e267b (patch)
treeb8740983b5d7a3dc957e550d5c4f222271890f0a /README.md
parent90bfe6cbf616c4fcd6903a2e0a087045c8f4ea35 (diff)
Shell: allow to toggle "exit on error"
Changelog: Implemented "set +e/-e" in the shell interpreter.
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index c184bda..6d5baf1 100644
--- a/README.md
+++ b/README.md
@@ -416,6 +416,9 @@ Where `<node>` is the network node on which to run the script (it will be run in
and `<name>`, if given, is the name of the variable that will refer to the shell process (this can be used e.g. in the `expect` command to check the standard output of the script).
As with the `spawn` command, the resulting process is terminated at the end of the current scope.
+By default the shell process exists with failure whenever any command exits with non-zero status.
+This behavior can be disabled using the `set +e` command (and re-enabled with `set -e`).
+
### Functions