This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.




Attachment: cygcheck.out
Description: Binary data

--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]