X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
X-Spam-Score: 2.207
Message-ID: <46EF0932.8090902@schoenhaber>
Date: Tue, 18 Sep 2007 01:09:38 +0200
From: =?UTF-8?B?TWFya3VzIFNjaMO2bmhhYmVy?= <mailing-cygwin@schoenhaber.schoenhaber.de>
Reply-To: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.8.1.6) Gecko/20070802 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Space in Home Directory Path
References: <000901c7f979$51c013d0$4102a8c0@gang3g2>
In-Reply-To: <000901c7f979$51c013d0$4102a8c0@gang3g2>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
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

G. Huang wrote:

> So my question is: Is there a way to change the home directory on the XP
> machine to c:\cygwin\home\gang? Or alternatively, get around the space
> problem?

http://cygwin.com/faq/faq.setup.html#faq.setup.home

In /etc/passwd, set the the user home directory field to the desired
value, ex.
/cygdrive/c/home/gang.

The workaround for the problem with spaces in paths is to not have
spaces in paths - as the FAQ has already told you. One possible way to
achieve this is to use the 8.3-style-version of the path. For example,
the user home directory field in /etc/passwd for my main account is set to
/cygdrive/c/DOKUME~1/mks/Home
(i. e. pointing to C:\Dokumente und Einstellungen\mks\Home) and I have
never had any problems with this setting.

Regards
  mks

--
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/

