From 3192e00f4f34b0287d79b60896d55be0b180edbb Mon Sep 17 00:00:00 2001 From: Carl Edquist Date: Thu, 6 Oct 2022 02:26:41 -0500 Subject: [PATCH] progress: output final newline to terminal.Out fmt.Println writes to stdout, which may be redirected and wrongly included with the main program output (like the cat command) instead of written to the terminal output. Note the rest of the progress output goes to terminal.Out in printProgress via terminal.Write() --- cmd/progress.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/progress.go b/cmd/progress.go index 56556db2e..1a0128dcb 100644 --- a/cmd/progress.go +++ b/cmd/progress.go @@ -62,7 +62,7 @@ func startProgress() func() { printProgress("") fs.LogPrint = oldLogPrint operations.SyncPrintf = oldSyncPrint - fmt.Println("") + fmt.Fprintln(terminal.Out, "") return } }