|
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, Idon'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.
[Prev in Thread] | Current Thread | [Next in Thread] |