hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit b0584bf9e2537e3f94d691c57dbf0ccc29d890fd
parent ebc76947fa64e29f4352c0f0c9719e0917c08adc
Author: Alexey Yerin <yyp@disroot.org>
Date:   Mon, 11 Sep 2023 22:53:14 +0300

cmd/hare: Avoid printing unnecessary newlines

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Mcmd/hare/build/queue.ha | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cmd/hare/build/queue.ha b/cmd/hare/build/queue.ha @@ -200,7 +200,9 @@ fn await_task(ctx: *context, jobs: *[]job) (size | void | error) = { let output = io::drain(output)?; defer free(output); if (len(output) > 0) { - fmt::errorln()?; + if (ctx.mode == output::DEFAULT) { + fmt::errorln()?; + }; io::writeall(os::stderr, output)?; };