[Top][All Lists]
[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
- Re: ed and ^M: damages files unbeknownst to the user, (continued)
- Re: ed and ^M: damages files unbeknownst to the user, Dan Jacobson, 2001/11/19
- Re: ed and ^M: damages files unbeknownst to the user, Miles Bader, 2001/11/19
- Re: ed and ^M: damages files unbeknownst to the user, Andrew L. Moore, 2001/11/20
- Re: ed and ^M: damages files unbeknownst to the user, Dan Jacobson, 2001/11/21
- Re: ed and ^M: damages files unbeknownst to the user, Paul Jarc, 2001/11/21
- Re: ed and ^M: damages files unbeknownst to the user, Dan Jacobson, 2001/11/24
- Re: ed and ^M: damages files unbeknownst to the user, Paul Jarc, 2001/11/24
- Re: ed and ^M: damages files unbeknownst to the user, Eli Zaretskii, 2001/11/25
Re: ed and ^M, Eli Zaretskii, 2001/11/16
Re: ed and ^M, Hans-Bernhard Broeker, 2001/11/16
- Re: ed and ^M,
Dan Jacobson <=