-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rich: io: do not insert blank lines during output stream init
When redirecting commands output to files, do not insert blank lines (append mode) when initializing the redirection stream: in case the command fails, the empty line will remain which will separate nothing. This may be annoying e.g. when running a script to generate boards documentation (think cheat sheet): commands may involve DT paths (e.g. devices) that are not always defined, printing the DTSh error on stderr, and inserting little blanks into the generated documentation ;-)
- Loading branch information
Showing
1 changed file
with
27 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters