CR stripped in files with CR/LF by 'ed' while in binary mode.

KMatte kmatte@shaw.ca
Wed Feb 19 21:14:00 GMT 2003


Using 'ed' to modify a file with 'CR/LF' at the end of each
line results in the CR's being stripped out.

I have:
-    export CYGWIN=binmode
-  all mounts in binmode
      C:\app\cygwin\usr\X11R6\lib\X11\fonts on
/usr/X11R6/lib/X11/fonts type system (binmode)
      c:\app\cygwin\bin on /usr/bin type system (binmode)
      c:\app\cygwin\lib on /usr/lib type system (binmode)
      c:\app\cygwin on / type system (binmode)
     C: on /c type system (binmode)

Example:
1. On Windows XP, set the CYGWIN environment variable to
binmode.
2. Create a file FUN with the old EDIT command in DOS.
3. Verify the file is ^M's using vi FUN
4. Edit the file FUN with ed FUN
5. Do a w<Enter>q<Enter> to save FUN and quit ed
6. Check if ^M's are in FUN using vi FUN

I don't believe this is the desired behaviour since vi
doesn't behave in this manner.




-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 17549 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20030219/8de18376/attachment.obj>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list