delorie.com/archives/browse.cgi | search |
On Thu, Sep 05, 2002 at 12:39:51PM +0200, dvasaru AT broadpark DOT no wrote: >You're right of course, and I will not push for this very hard, but >such a flag would ensure compatible results across platforms: > >file.txt: >i have crlf\r\n >and another one\r\n > >solaris> sed 's/crlf$/nocr/' file.txt >i have crlf\r\n >and another one\r\n Works fine for me on a binmode or textmode mount, which is by design. sed should open its input in textmode and it's output in binary mode. >cygwin> sed 's/crlf$/nocr/' file.txt >i have nocrlf\n >and another one\n > >proposed: >cygwin-notextmode> sed 's/crlf$/nocrlf/' file.txt >i have crlf\r\n >and another one\r\n > >Read also my comments below. I think you have the tools you need, so I do not want to complicate the binmode/textmode logic in cygwin with YA option. That's it for me. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |