bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ed and ^M


From: Dan Jacobson
Subject: Re: ed and ^M
Date: 17 Nov 2001 00:08:26 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "H" == Hans-Bernhard Broeker <address@hidden> writes:

H> Dan Jacobson <address@hidden> wrote:
>> While using ed on a file formatted with ^M's at the end of each
>> line, the output could be quite disturbing:

H> Not really a surprise, I'd say.  AFAIK, files with CR characters in
H> them are not technically text files, by Unix standards.  Text
H> utilities are entitled to failing miserably in any way you do or don't
H> expect, with such input.

$ cp /bin/ed /tmp
0jidanni$ ed /tmp/ed
68732
1
*C(H#=4 (444L  /lib/ld-linux.so.2GNUCJ:GDI6B8"F
      A93;$ %E
              ?2)5+<1/&'
^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2cq
?
h
Unknown command
q


hmmm, maybe it should warn about binary etc. files.
-- 
http://www.geocities.com/jidanni/ Tel+886-4-25854780



reply via email to

[Prev in Thread] Current Thread [Next in Thread]