X-Spam-Check-By: sourceware.org
From: Jeff Hawk <Jeff.Hawk@navigon.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Date: Tue, 10 Apr 2007 13:23:16 -0500
Subject: RE: redefining $HOME
Message-ID: <A8C9B1E752D80D42AF1F89CE4D93CB1F0248A76825@USIL-EXCHG01.us.navigon.local>
References: <461A5613.7000101@gmail.com>  <loom.20070410T195855-826@post.gmane.org>
In-Reply-To: <loom.20070410T195855-826@post.gmane.org>
Accept-Language: en-US
Content-Language: en-US
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
X-Envelope-From: <Jeff.Hawk@navigon.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l3AINwjL009802

What I do is to always use the "short name" version of the directories in $HOME and $PATH. It's a little bit of a pain because some programs put the long name in the path when they install, so every time I update iTunes (for example) I have to fix the path.

The short names are still available on Windows 2000 and XP (Vista?).

--Jeff

> -----Original Message-----
> From: Cygwin On Behalf
> Of Eric Backus
> Sent: Tuesday, April 10, 2007 1:04 PM
> To:
> Subject: Re: redefining $HOME
>
> Gustavo Seabra <gustavo.seabra <at> gmail.com> writes:
>
> > Hi all,
> >
> > I was wondering if it is possible to use the windows folder "My
> > Documents" or even "C:\Documents and Settings\USERNAME" (or some dir
> > inside those) as the hoe directory in Cygwin. I though about
> > substituting the user directory inside /home by a symlink to one of the
> > above. Is there any reason that wouldn't work? Is there a better way to
> > do it?
> >
> > The reason I am thinking about it is just practical: I want to have all
> > my files (Windows or Cygwin) under one root.
> >
> > Thanks a lot
> >
> > Gustavo.
>
> Yes, you can do this.  I've done this for years by
> putting "/cygdrive/c/Documents and Settings/ericjb/My Documents"
> into /etc/passwd.  This works well, though every once in awhile you might
> find
> a shell script which doesn't correctly handle spaces in paths.  (Such a
> script
> is broken, and should be fixed.)  I can't even remember the last time I
> ran
> into that though, most scripts don't use $HOME.
>
> --
> Eric
>
>
>
> --

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


