From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17789 invoked by alias); 16 Jun 2018 20:34:21 -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 17781 invoked by uid 89); 16 Jun 2018 20:34:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Having X-HELO: mail-io0-f179.google.com Received: from mail-io0-f179.google.com (HELO mail-io0-f179.google.com) (209.85.223.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 16 Jun 2018 20:34:19 +0000 Received: by mail-io0-f179.google.com with SMTP id r24-v6so13614557ioh.9 for ; Sat, 16 Jun 2018 13:34:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=J+WsgGsE0GAw7uLn0FAkSN7cwcg5nhcb4w+Ds8AM7I8=; b=M1JIidia3m+ybrFxEvRPq5Ri+gYc4BINqdVRxGuxr9ux1CLBK0zNqC7dsOSDqgoQV/ XkOrDCJBVFr3+3lfh5Nuh46OwJ2ZxBwgZlpxJktrzRaZqrlWu3D/0cddp4weNnvXj9lM YPAJL5FeqJuAaf/xX+nCp7JSS8qELnTrt9nn5yiml7YKh1hj2+1QDPJQg3InaVBVUlq+ wSNFXB6OxQEkMgraahdpcAvRtXDf+WqOCiojp5Mp5Vvj7NeDDynMh+Ir4QG/5Gy0RA1w kgn5LwnEnqLrTQE7TB1VmAfrawbY/gU8T4izMvVW0Ra/4+mzWqCoH7U9vyvaQFdnxpa7 g7Bg== X-Gm-Message-State: APt69E3uTUemgOHbzFaV8hGUEAxDyzZWSUP6sgKjzFsKCrQIt/hwGta6 9uGCXMuHPv+s5BzLW8UDA3LVPg== X-Google-Smtp-Source: ADUXVKISuh1cRhPtS4/YvSTwWJUV/I+z9oZdySdfa88xMQXQXxVh7caohGzp/LWBpnxqsFaDgY5ovw== X-Received: by 2002:a5e:d60a:: with SMTP id w10-v6mr5647613iom.54.1529181257415; Sat, 16 Jun 2018 13:34:17 -0700 (PDT) Received: from [192.168.0.19] ([50.4.50.42]) by smtp.gmail.com with ESMTPSA id x17-v6sm2553891ita.11.2018.06.16.13.34.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 Jun 2018 13:34:16 -0700 (PDT) Subject: Re: Unexpected behavior of ~ when calling bash from a different cygwin installation To: cygwin@cygwin.com References: <0F7D3B1B3C4B894D824F5B822E3E5A1778800706@IRSMSX102.ger.corp.intel.com> <0F7D3B1B3C4B894D824F5B822E3E5A177880079D@IRSMSX102.ger.corp.intel.com> <3a183948-c9f5-bf7a-355e-9d194c5a5974@gmail.com> <0F7D3B1B3C4B894D824F5B822E3E5A177880141A@IRSMSX102.ger.corp.intel.com> From: cyg Simple Openpgp: preference=signencrypt Message-ID: <4f66df8e-e0fa-f7b2-4a3a-87655ebf6aaf@gmail.com> Date: Sun, 17 Jun 2018 02:14:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A177880141A@IRSMSX102.ger.corp.intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00200.txt.bz2 On 6/16/2018 9:33 AM, Soegtrop, Michael wrote: > Dear Marco, > >> this is due to the preference given by Windows to load dll's from the same >> directory where the program is resident instead of using the ones in the PATH > > yes, this is expected behavior. What is not expected is that the location of the system root in the Windows file system does not depend on the loaded cygwin1.dll. > Cygwin uses the parent of the path containing the cygwin1.dll as the root path. Having multiple Cygwin's on disk isn't an issue. Starting another session of a Cygwin using cygwin1.dll on a different path is. It just doesn't work properly. Your use of windows cmd to clear the environment and start another session on a different path works because the children then don't have a reference to the original parent. -- cyg Simple -- 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