From owner-freebsd-bugs Mon Apr 15 20:26:28 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA02631 for bugs-outgoing; Mon, 15 Apr 1996 20:26:28 -0700 (PDT) Received: from time.cdrom.com (time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id UAA02624 for ; Mon, 15 Apr 1996 20:26:24 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by time.cdrom.com (8.7.5/8.6.9) with SMTP id UAA22643; Mon, 15 Apr 1996 20:22:49 -0700 (PDT) To: Hofera@aol.com cc: freebsd-bugs@FreeBSD.org Subject: Re: Strange things happen... In-reply-to: Your message of "Mon, 15 Apr 1996 13:44:43 EDT." <960415134443_375853322@mail02.mail.aol.com> Date: Mon, 15 Apr 1996 20:22:49 -0700 Message-ID: <22640.829624969@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-bugs@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > I recently converted from Linux to FreeBSD (because of too frequent disk > crashes thatI had), so maybe the problem that I'm having is a silly one. > Last weekend I compiled the Khoros 2.02 package for scientific data > visualization and image processing and it was amazing how smooth such a huge > package compiled. The .khoros_env user specific initialization file, which is > also installed inthe run of this process, sets (among others) the environment > variable TMPDIR to the value "/usr/tmp". This is done assuming that /usr/tmp Assigning TMPDIR will cause a lot of utilities to use that variable, as you found vi has done. Unfortunately, if you look at /tmp you'll notice a certain structure to it, like the vi.recover directory that vi needs. By pointing at /usr/tmp, you've confused vi. Recommended fix: Copy everything from /tmp to /usr/tmp like so: % tar cf - -C /tmp . | tar xvf - -C /usr/tmp Remove /tmp % rm -rf /tmp Link /tmp to /usr/tmp % ln -s /usr/tmp /tmp Fixed forever! Jordan