Subject: bug#66056: tee Problem in 8.32, O.K in 8.30

From: Pádraig Brady <[email-masked]>
Date: Mon, 18 Sep 2023 17:22:59 +0100

tag 66056 notabug
close 66056
stop

On 17/09/2023 19:37, Pádraig Brady wrote:
> On 17/09/2023 18:32, Manfred Alfare wrote:
>> Hi!
>> Details described here:
>> https://forums.linuxmint.com/viewtopic.php?t=404074
> 
> I don't think anything in tee has changed between 8.30 and 8.32,
> wrt carriage return handling, especially on linux.
> 
> My best guess is that fsarcher has changed to do
> the equivalent of `stty -onlcr` if not outputting to a tty.

Looking at your command again I see it uses sudo.
Searching for "sudo onlcr" gives:
https://github.com/sudo-project/sudo/issues/258

So my best guess now is that the new version of linux mint
set use_pty by default, and this results in sudo
clearing onlcr in the allocated pty.

Closing the coreutils bug report now.

cheers,
Pádraig