From b7638754c0856b1bb5f911985190419ecb5e267b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 22 Aug 2026 21:55:01 +0200 Subject: Shell: allow to toggle "exit on error" Changelog: Implemented "set +e/-e" in the shell interpreter. --- README.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index c184bda..6d5baf1 100644 --- a/README.md +++ b/README.md @@ -416,6 +416,9 @@ Where `` is the network node on which to run the script (it will be run in and ``, 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 -- cgit v1.2.3