Subject: bin/1749: /usr/bin/vi can't handle ":r ~user/something" correctly
To: None <>
From: Thorsten Frueauf <>
List: netbsd-bugs
Date: 11/09/1995 18:17:07
>Number:         1749
>Category:       bin
>Synopsis:       /usr/bin/vi can't handle ":r ~user/something" correctly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>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.

Sorry, no idea how to fix it yet.