vim do not guess $HOME when unavailable

Bram Moolenaar Bram at moolenaar.net
Mon Jan 23 21:32:20 UTC 2006


Ciaran McCreesh wrote:

> On Mon, 23 Jan 2006 10:32:23 +0100 Bram Moolenaar <Bram at moolenaar.net>
> wrote:
> | Vim only uses $HOME, so that you can specify what home directory to
> | use. So far I haven't seen a reason to do otherwise.  Not having
> | $HOME set is likely to cause trouble.
> 
> Although unfortunately, some of the Gnome stuff to which Vim links
> ignores $HOME and only uses getpwuid, which means that the Vim build
> process has to have write access to the real ~/.gnome2* when generating
> the NLS things or running tests...

That's weird.  I mean, how would you get the result from getpwuid() in a
shell script (in a Makefile)?

Also note that "~/.gnome2" is short for "$HOME/.gnome2".  At least,
that's how I have aways seen it.  A simple test confirms it:

	sh
	% cat ~/somefile
	[file is displayed]
	% unset HOME
	% cat ~/somefile
	cat: ~/somefile: No such file or directory

Perhaps it's better to consider the Gnome stuff to be the problem...

-- 
hundred-and-one symptoms of being an internet addict:
130. You can't get out of your desk even if it's time to eat or time
     to go to the bathroom.

 /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://www.ICCF.nl         ///



More information about the pkg-vim-maintainers mailing list