From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 62604 invoked by alias); 15 Jun 2018 23:50:10 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 62566 invoked by uid 89); 15 Jun 2018 23:50:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=UD:ru, HX-Priority:Normal, H*F:D*yandex.ru, yandexru X-HELO: forward100j.mail.yandex.net Received: from forward100j.mail.yandex.net (HELO forward100j.mail.yandex.net) (5.45.198.240) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Jun 2018 23:50:06 +0000 Received: from mxback20j.mail.yandex.net (mxback20j.mail.yandex.net [IPv6:2a02:6b8:0:1619::114]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 9A4A15D863AC; Sat, 16 Jun 2018 02:50:02 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback20j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 5Mpp7DIxmm-o1B06IMA; Sat, 16 Jun 2018 02:50:02 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id pI7Tb1bdeq-o0CeQL7T; Sat, 16 Jun 2018 02:50:00 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp3o.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Fri, 15 Jun 2018 23:38:03 -0000 Date: Sat, 16 Jun 2018 05:56:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1307619899.20180616023803@yandex.ru> To: "Soegtrop, Michael" , cygwin@cygwin.com Subject: Re: Unexpected behavior of ~ when calling bash from a different cygwin installation In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A177880079D@IRSMSX102.ger.corp.intel.com> References: <0F7D3B1B3C4B894D824F5B822E3E5A1778800706@IRSMSX102.ger.corp.intel.com> <0F7D3B1B3C4B894D824F5B822E3E5A177880079D@IRSMSX102.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00183.txt.bz2 Greetings, Soegtrop, Michael! > I got it, I just have to clear the HOME variable before. > But I have a few more observations on this: > the FAQ (section 4.20) state that the root path for the mount table depends > on the path of the cygwin1.dll, to which an executable is linked. "Linked" in this case should be read as "first cygwin1.dll loaded". > This > doesn't seem to be the case. E.g. when I do > * start a bash via C:\bin\cygwinA\cygwin.bat > * cd to /cygdrive/c/bin/cygwinB/bin > * ./bash > The first and the second bash have both /=C:\bin\cygwinA although > SysInternals ProcExplorer clearly shows that the second bash loads the > cygwin1.dll from C:\bin\cygwinB and not from C:\bin\cygwinA. Is there some > description on how the path mapping really works? The mapping is consistent throughout the execution tree. > If I do: > * start a bash via C:\bin\cygwinA\cygwin.bat > * cd to /cygdrive/c/bin/cygwinB/bin > * /cygdrive/c/Windows/System32/cmd > * bash > The dlls to which the second bash links are the same in both cases, but in > the second case /= C:\bin\cygwinB in the second shell. Indeed, since you cleanly broke out of cygwin execution tree. > And yes, I also read in section 4.20 of the FAQ that one shouldn't call one > Cygwin from another. But I think a clear handover from one bash to another should work in a documented way. It does. Do not mix Cygwin installations. At best, nothing will work, at worst, you'll get unpredictable behavior that is hard to track down. Each Cygwin installation have its own rebase map. -- With best regards, Andrey Repin Saturday, June 16, 2018 2:34:34 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple