Mail Archives: cygwin/2006/06/27/16:03:23
------=_Part_37403_29702404.1151438591161
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On 6/27/06, David Mastronarde wrote:
> On Sun, 25 Jun 2006, Dave wrote:
> > David Mastronarde wrote:
> >> After upgrading sed from 4.1.4 to 4.1.5, I found that line endings were
> >> being converted from CRLF to CRCRLF when the input file was specified
> >> with a windows file path:
> >>
> >> % sed -e 's/g5a/setname/g' < 'c:\cygwin\home\mast/sedtestin' > ! sedtestout
> >>
> >> Converting the path to cygwin format eliminated the problem.
> >
> > Have a read of http://cygwin.com/cygwin-ug-net/using-textbinary.html
> >
> > Try specifying the output file in MSDOS format, '.\sedtestout'.
>
> I don't see the distinction between the redirection and the writing, and
> also setting CYGWIN to nobinmode has no effect, so rule c does not seem to
> be relevant.
If you set CYGWIN=nobinmode, I believe you will get newline
conversions done across pipes. In your example, you are only using
redirections. I would advise that you don't set it.
> But also, specifying output as '.\sedtestout' did NOT solve the problem,
> even with nobinmode in effect. So rule b is governing the input but is
> not being applied on output.
Works for me - see attached session output.
Dave.
------=_Part_37403_29702404.1151438591161
Content-Type: text/plain; name=session.out; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: base64
X-Attachment-Id: f_eoyoi0t9
Content-Disposition: attachment; filename="session.out"
JCBwd2QKL3Rtb2RlCgokIG1vdW50CmM6XGN5Z3dpblxob21lXGRraWxyb3lc
dG1vZGUgb24gL3Rtb2RlIHR5cGUgdXNlciAodGV4dG1vZGUpCmM6XGN5Z3dp
blxiaW4gb24gL3Vzci9iaW4gdHlwZSBzeXN0ZW0gKGJpbm1vZGUpCmM6XGN5
Z3dpblxiaW4gb24gL2JpbiB0eXBlIHN5c3RlbSAoYmlubW9kZSxleGVjKQpj
OlxjeWd3aW5cbGliIG9uIC91c3IvbGliIHR5cGUgc3lzdGVtIChiaW5tb2Rl
KQpjOlxjeWd3aW4gb24gLyB0eXBlIHN5c3RlbSAoY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MKCiQgb2QgLWEgZG9z
X291dC50eHQgCjAwMDAwMDAgICBUICAgaCAgIGkgICBzICBzcCAgIGYgICBp
ICAgbCAgIGUgIGNyICBubCAgIHMgICBoICAgbyAgIHUgICBsCjAwMDAwMjAg
ICBkICBzcCAgIGggICBhICAgdiAgIGUgIHNwICAgRCAgIE8gICBTICBzcCAg
IGwgICBpICAgbiAgIGUgIHNwCjAwMDAwNDAgICBlICAgbiAgIGQgICBpICAg
biAgIGcgICBzICBjciAgbmwKMDAwMDA1MQo=
------=_Part_37403_29702404.1151438591161
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
------=_Part_37403_29702404.1151438591161--
- Raw text -