X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=Q3bMV7xuV9YmPYj3 7zY/vvVjMwO1Ju0lwM9NMPdfzvInFcZMnEnwCXjnLRZokHOKI49CoRYI7F6T0bGW fzdH0LeZXS7ejGWnp/5Li0LyPTVHPQD3LNejNRUvVPwjRdWO6lCUqsCQvUZuoCq3 jx9k9K72c12c7I+QgYA6iaaXvAY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=tfRJkVay/2FsN/LPm+OR5A lN2L0=; b=oFTWTroTAAVS7rNuk+TmaYj0eVeCGh4/YhjUrC5wq3uONWJQYXnoDk 7bijT7ODf1q+GLfm8c74JItGSIEd0rDocS2CIMx6nxEM0ODgBCpL5X4xkLVEu1El LZ9+t+gdmkwI/9WvSZiv44Exzw+t2w/iPVy7ejV6yXtTFFM+omhoo= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_BODY_URIBL_PCCC,KAM_FROM_URIBL_PCCC,KAM_THEBAT,MIME_BASE64_BLANKS,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtp.ht-systems.ru Date: Sat, 14 Feb 2015 02:24:54 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <646732991.20150214022454@yandex.ru> To: Denis Excoffier , cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.35-0.1 In-Reply-To: References: <74410B36-A057-483B-AAA3-20C15934374E AT Denis-Excoffier DOT org> <2F8A6D52-E4D9-48D0-BC21-13213AAC9F4B AT etr-usa DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id t1DNZjkL030836 Greetings, Denis Excoffier! >>> On Feb 13, 2015, at 11:30 AM, Denis Excoffier wrote: >>> >>> I tried (according to the new documentation): >>> >>> db_home: /%H/%U/cygdir >>> >>> and that was fine but %H was replaced by the >>> /cygdrive/C/Document and Settings/ prefix >> >> I don’t think you should use %H when that directory might contain spaces. It’s likely to cause many problems. > You misunderstand. I don't need this stupid 'Document and Settings' thing. > I need %H to represent my home dir, that means > /cygdrive/d/Home/myuser1 on this XP P3 (a corporate one) and %H represents your WINDOWS home directory. That's it, %HOMEDRIVE%%HOMEPATH%. It already contain your login name, if that is appropriate for your profile directory. From https://cygwin.com/cygwin-ug-net/ntsec.html %H Windows home directory in POSIX style. Note that, for the db_home: setting, this only makes sense right after the preceding slash, as in db_home: /%H/cygwin > /cygdrive/c/Users/myuser2 on this W7 (another corporate). > That way, using %H/%U/cygdir under both architectures would generate the right thing. > But currently, on XP SP3, the %H is replaced by '/cygdrive/d/Document and Settings/myuser1' which i'm pretty > close to consider as a bug. Should be '/cygdrive/d/Home/myuser1' i suppose. I have a feeling that you have %HOME% defined before mintty starts. I just made some tests, and it seems to be the showstopper. If %HOME% is already set, nsswitch.conf:db_home is ineffective. Simple check for SET HOME= mintty - instantly picked the right settings from nsswitch.conf I don't know, if this is intended behavior... We'd need an expertise here. >> I may be misunderstanding your desire. If you actually want Cygwin home >> directories under c:\Documents and Settings, you can combine nsswitch.conf >> settings with a custom mount point in fstab to avoid the need for spaces in >> $HOME: >> >> C:/Documents\040and\040Settings /home ntfs binary 0 0 > Good idea (a symlink would also do the job wouldn'it?) Naaw, setup have a habit or removing symlink replacements for standard directories. It may be safe for /home, as no packages contain files in there, though. > but i really don't > need this. I don't like spaces in filenames either: they don't fit nicely in makefiles. -- WBR, Andrey Repin (anrdaemon AT yandex DOT ru) 14.02.2015, <01:52> Sorry for my terrible english...