diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-08-22 21:55:01 +0200 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-08-22 22:01:54 +0200 |
| commit | b7638754c0856b1bb5f911985190419ecb5e267b (patch) | |
| tree | b8740983b5d7a3dc957e550d5c4f222271890f0a /README.md | |
| parent | 90bfe6cbf616c4fcd6903a2e0a087045c8f4ea35 (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.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |