mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
cmd grouping eats stdout/stderr trap output (issues/2522)
@@ -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.
|
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:
|
### Related resources:
|
||||||
|
|
||||||
* [BashFaq: How can I redirect the output of multiple commands at once?](https://mywiki.wooledge.org/BashFAQ/014)
|
* [BashFaq: How can I redirect the output of multiple commands at once?](https://mywiki.wooledge.org/BashFAQ/014)
|
Reference in New Issue
Block a user