Subject: Re: bin/1749: /usr/bin/vi can't handle ":r ~user/something" correctly
To: None <netbsd-bugs@NetBSD.ORG>
From: Christos Zoulas <firstname.lastname@example.org>
Date: 11/10/1995 00:24:20
In article <199511091817.SAA02868@di_frueauf.ira.uka.de> email@example.com writes:
>>Synopsis: /usr/bin/vi can't handle ":r ~user/something" correctly
>>Responsible: bin-bug-people (Utility Bug People)
>>Arrival-Date: Thu Nov 9 14:50:03 1995
>>Originator: Thorsten Frueauf
>>Release: <NetBSD-current source date> NetBSD current from 08.11.1995
>System: NetBSD di_frueauf 1.1_ALPHA NetBSD 1.1_ALPHA (Milano) #8: Thu Nov 2 16:29:47 GMT 1995 milano@di_frueauf:/home/milano/source/netbsd-src/sys/arch/amiga/compile/Milano amiga
>vi can't resolve the ~ when your try to include a filename referenced indirectly
>by ~user. Somehow some "crap" gets before the resolved pathname.
>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.
This is not a bug with vi. Your .cshrc is busted and has 'clear' or some
other junk writing to the terminal...
You should protect such portions with $?prompt... This does not work all
the time but it should be good enough.