Subject: Re: bin/1749: /usr/bin/vi can't handle ":r ~user/something" correctly
To: None <gnats-bugs@NetBSD.ORG, frueauf@ira.uka.de>
From: Mike Long <mike.long@analog.com>
List: netbsd-bugs
Date: 11/09/1995 18:53:38
>Date: Thu, 9 Nov 1995 18:17:07 GMT
>From: Thorsten Frueauf <frueauf@ira.uka.de>

>Assuming ~user/foo exists and is a valid textfile, readable by the one that
>trys to include it. Now start vi then ":r ~user/foo", you will get:
>
>Error: ^[[H^[[2J/home/user/foo: No such file or directory.
>
>If you try ":r /home/user/foo" the file gets included like expected.

vi uses your shell (taken from the SHELL environment var) to expand
the ~.  If your login shell is /bin/csh, then it will execute your
.cshrc.  Something in your .cshrc is generating the extra characters,
probably /usr/bin/tset.

Don't run tset from your .cshrc.  Or at least add the following bit
of code to the beginning:

if ( ! $?prompt ) exit

RTFM for further details.
-- 
Mike Long <mike.long@analog.com>           http://www.shore.net/~mikel
VLSI Design Engineer         finger mikel@shore.net for PGP public key
Analog Devices, CPD Division          CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA                assert(*this!=opinionof(Analog));