From 8735ae36fe5bed2b0a4938cd66651ab111e7061b Mon Sep 17 00:00:00 2001 From: "John A. Lotoski" <39752197+johnalotoski@users.noreply.github.com> Date: Wed, 22 Jun 2022 15:48:52 -0500 Subject: [PATCH] cmd grouping eats stdout/stderr trap output (issues/2522) --- SC2129.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SC2129.md b/SC2129.md index 83b2b2d..7f55801 100644 --- a/SC2129.md +++ b/SC2129.md @@ -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) \ No newline at end of file