[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sed+windows/cygwin+newlines: improving documentation

From: Assaf Gordon
Subject: Re: sed+windows/cygwin+newlines: improving documentation
Date: Fri, 12 Oct 2018 11:57:18 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 09/10/18 09:20 PM, Eli Zaretskii wrote:
From: Assaf Gordon <address@hidden>

sounds like -b only affects writing with the 'w' and 'W' commands, I
don't see where Sed switches its standard output to binary mode.

Correct, with the addition of -i/--inplace option should also respect
the write_mode when the temporary file is created:

STDOUT is not affected in any case.

OK, then this explains why the output from Sed always produces CRLF
Windows EOL format.  The Sed manual clearly says:

Do you think it would be better to also make "-b" affect STDIN/STDOUT?
Making it consistent without strange exceptions?

I'll give it a shot and send a patch soon.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]