[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sed bug ?
Re: Sed bug ?
Tue, 13 Dec 2005 06:17:56 -0700
Mozilla Thunderbird 1.0.2 (Windows/20050317)
-----BEGIN PGP SIGNED MESSAGE-----
According to Patrick Gaughan on 12/12/2005 6:40 PM:
> I recently downloaded the Win32 port of the UnxUtils hoping to be able
> to use Sed on my
> Windows XP system in a DOS box. The first thing I tried was the EOLN
> conversion, so
> that I could read the docs I had also downloaded.
If you truly want a Unix environment on windows, then use a Unix-y file
reader that does not choke on unix line endings (hint - Windows notepad is
not the ideal program for reading unix documentation).
> Most of these of
> course only have LF as
> an EOLN as per Unix and are difficult to read..
Better programs for this are the pair dos2unix and unix2dos. I am not as
familiar with the UnxUtils port to windows to know if these tools are
available there, but the cygwin distribution provides them. You are more
likely to get help on Windows-specific issues by asking on the mailing
list that ported the tools to Windows, rather than on this generic GNU list.
> Sed is not inserting CRLF as EOLN, only LF.
Indeed, but this is not a bug; it is by design - if you use Unix tools,
expect Unix line endings.
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----