logo       


Re: bug report ver 0.16, on windows: msg#00242

Subject: Re: bug report ver 0.16, on windows
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


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe