cmd grouping eats stdout/stderr trap output (issues/2522)

John A. Lotoski
2022-06-22 15:48:52 -05:00
parent 147787416b
commit 8735ae36fe

@@ -27,6 +27,8 @@ Rather than adding `>> something` after every single line, you can simply group
This is mainly a stylistic issue, and can freely be ignored.
Note: shell traps which would ordinarily emit output to stdout or stderr on catching their condition will have output swallowed into the redirect when the trap is triggered from within the grouping.
### Related resources:
* [BashFaq: How can I redirect the output of multiple commands at once?](https://mywiki.wooledge.org/BashFAQ/014)