Subject: Re: bin/1749: /usr/bin/vi can't handle ":r ~user/something" correctly
To: None <gnats-bugs@NetBSD.ORG, email@example.com>
From: Mike Long <firstname.lastname@example.org>
Date: 11/09/1995 18:53:38
>Date: Thu, 9 Nov 1995 18:17:07 GMT
>From: Thorsten Frueauf <email@example.com>
>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,
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 <firstname.lastname@example.org> http://www.shore.net/~mikel
VLSI Design Engineer finger email@example.com for PGP public key
Analog Devices, CPD Division CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA assert(*this!=opinionof(Analog));