Skip to content

Fix subshells exiting not leading to script ending#749

Merged
m-reuter merged 1 commit into
Deep-MI:devfrom
dkuegler:fix/subshell
Nov 27, 2025
Merged

Fix subshells exiting not leading to script ending#749
m-reuter merged 1 commit into
Deep-MI:devfrom
dkuegler:fix/subshell

Conversation

@dkuegler
Copy link
Copy Markdown
Member

If bash starts a subshell as part of a pipeline "{ commands ... ; } | tee file.log", any exits encountered in the code block will not lead to the parent script to terminate, but instead just the script will continue.

Also fixes some shellcheck and formatting (line length) issues.

If bash starts a subshell as part of a pipeline "{ commands ... ; } | tee file.log", any exits encountered in the code block will not lead to the parent script to terminate, but instead just the script will continue.

Also fixes some shellcheck and formatting (line length) issues.
@m-reuter m-reuter merged commit 54b891e into Deep-MI:dev Nov 27, 2025
2 checks passed
@dkuegler dkuegler deleted the fix/subshell branch November 27, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants