At 02:46 AM 1/19/00 -0600, [EMAIL PROTECTED] wrote:
>So the moral of the story is, beware \r \n sequences on Linux boxes, 

>BTW, the reason I ran into this problem is that I was originally working with
>a rebscript I'd DL'd from a website.  It had those embedded \r \n sequences.
>I'm not sure if that happened because of the way I downloaded it, or because
>they were there in the data on the website...  but we should all be careful
>when posting code to eliminate \r \n sequences.  What's worse, apparently VIM
>looks for \r \n sequences terminating lines when it loads up, and uses *that*
>even when inserting / terminating newly added lines!



that one nabbed me before,
you get it by doing binary ftp
of files originating on an nt/win box.

one way to get vim or whatever
to show you these hidden
\r chars is to force a normal line on the front.


$ mv suspct sus.tmp
$ echo "normal-plain-line" >suspct
$ cat sus.tmp >>suspct

sometimes (IE not all vi clons)
when the editor sees the first line
does not have \r but subsquent lines do
it will flag the others with ^M visually.

then use
:g/$/s/^V^M//
to fix


{-----}
[EMAIL PROTECTED]

Reply via email to