vim do not guess $HOME when unavailable

Stefano Zacchiroli zack at
Mon Jan 23 10:26:04 UTC 2006

On Mon, Jan 23, 2006 at 10:32:23AM +0100, Bram Moolenaar wrote:
> > Is this intended (and if yes why) ? or shouldn't it use getpwuid to find 
> > the information ?
> 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.


But why not falling back to getpwuid() (or the correct brother) if $HOME
is unavailable && the target OS supports that function? It wont cause
any harm AFAICT.


Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{,,} -%-
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-

More information about the pkg-vim-maintainers mailing list