monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] bug report ver 0.16, on windows


From: Jon Bright
Subject: Re: [Monotone-devel] bug report ver 0.16, on windows
Date: Mon, 21 Feb 2005 23:20:04 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Hi,

Nathaniel Smith wrote:

The current logic on Windows is:
 -- if HOMEDRIVE and HOMEPATH are defined, your homedir is $HOMEDRIVE+$HOMEPATH
 -- otherwise, error out and whine at the user

For my bog-standard Cygwin install, HOMEDRIVE and HOMEPATH are defined... but to ...Documents and Settings.... HOME is also defined within the Cygwin shell, to /home/jbright. Under the normal Windows command shell, only HOMEDRIVE and HOMEPATH are defined, HOME is absent. USERPROFILE is defined in both Cygwin and the Windows command shell, but points at ...Documents and Settings... in both places.

I'd suggest:

1. If OSTYPE is defined and $OSTYPE=="cygwin", and HOME is defined, use $HOME. 1a. Maybe take USERPROFILE instead of HOMEDRIVE and HOMEPATH. I'm guessing USERPROFILE is probably an NTism, but I don't know for sure.
2. If HOMEDRIVE and HOMEPATH are defined, do as currently
3. Otherwise, whine at user.

Note, though, that I've not got a MinGW install on this machine to check against, so an additional rule might be needed for that. Fun! :-)

--
Jon Bright
Silicon Circus Ltd.
http://www.siliconcircus.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]