Ray Frush wrote:

> I managed to miss this posting until now, so I'm only 45 or so days
> late.   I appreciate that you kept this request in the queue and
> worked on it after the release of 7.3!
> 
> I've tried this with VIM (EX) 7.3.62, and it still produces a
> different result than the 6.3 version we're running on RHEL4.
> 
> 
> To recreate the problem, perform the following:
> cat - > ex.input << EOF
> a
> X \\
> Y
> .
> w ex.output
> EOF
> cat -tvse ex.input
> ex - -u NONE < ex.input
> cat -tvse ex.output
> 
> When working correctly (rhel4), the output from cat of ex.output is:
> $
> X \$
> Y$
> 
> On rhel5, the output from cat of ex.output is:
> X \...@y$

Have a look at ex.input:

a$
X \$
Y$
.$
w! ex.output$


You have a backslash at the end of the line.  That means the line break
is taken literally.  You need to double the backslash if you want a
backslash at the end of the line.

My old "original vi" doesn't run right now, thus I can't verify how it
handles this.  It's a bit difficult to tell what would be the correct
way to handle this.

-- 
The chat program is in public domain.  This is not the GNU public license.
If it breaks then you get to keep both pieces.
                -- Copyright notice for the chat program

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui