X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2632F3985402 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo AT towo DOT net Subject: Re: Please add /cygdrive/c/Windows/Sysnative to the default PATH To: cygwin AT cygwin DOT com References: From: Thomas Wolff Message-ID: Date: Tue, 17 Nov 2020 22:23:37 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K1:cdEpWvO5eKI80bVp4tqY7GLMawSN34fV9LU3vz2aLnImHUgmm8H K0EGUTzKhk/nIftKHe2XV6UPKqGSj5HJxiRr9lSpE4UksHdCZ6QOfm5O1l6TlQeAuwGEDXg RJSPDWL55UmbN+YCaJKaD9dwXE22izx/YnHkPLwlPhSWOrZayTA4JBH8tsOzhchgV4YfItF jGWA9iMByhUvQYlCVRKkA== X-UI-Out-Filterresults: notjunk:1;V03:K0:j9HgKW3mtgg=:zr+j2bnwaO8prbFQKCYlrM w/NBTP0oD5+FL9juO13I7V0ugIJrV9cwOI7MAeQVcBkLXinbPBo1U+dlD1Uozz2pkrBV5OLOf fMFLVCxdsMsFh9RkALttsCFFANa85zV7VPlwpG72aFp8Ilu0SdpgOr3YsQIvZAVn8GXPLGPL1 j+aJmECUJgKw8n00RvK/fbwk/GeIPw8wiHl9cSfbB1K0InJk7LLVhXeCJbTxF8ZACQEFaN4dD FTj7y49Zqme8ylCF9AOicPKIB7uOqtXv5FCrm/yPAXWJFKCNM/zt47M1AY/i2vr5/AHAiti5F KQfUEzgcWhR4gCNxVvXr4kQ5pte1TWZhiL66r8OpTmVEWpQxZRHngMfuUo2lN6F6jMQQKDdBl BqjeZiAHd1GsMnc+CdWxW19X2yQNRFoemjl6i2tu484w5C+uzDIDD+pcpt4z2 X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_SBL_CSS, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 0AHLODlK024268 Am 17.11.2020 um 20:54 schrieb tealhill via Cygwin: > Dear all: > > ### Background information (you can skip this) > >  ... > > ### The problem > > 32-bit tools, such as 32-bit Cygwin, don't usually see the real > System32 directory.  Instead, when they try to look inside System32, > Windows shows them the contents of a different directory, which > contains only 32-bit System32 tools. > > If 32-bit Cygwin needs to run a 64-bit tool, such as pluck.exe (from > Pluckeye) or wsl.exe (from the Windows Subsystem for Linux), it must > look in a different directory instead.  It must look in > C:\Windows\Sysnative.  In this virtual folder, 32-bit Cygwin can see > all the 64-bit System32 tools. > > If you try to run pluck.exe without specifying that it's in > /cygdrive/c/Windows/Sysnative, you'll get the output: > > [user AT host ~]$ pluck > -bash: pluck: command not found > > This 'virtual folder' stuff is non-obvious and confusing.  It took me > some time to figure it all out. I ran into this kind of problem myself. These virtual folders are a nuisance and it's bothersome and tricky to find out, especially as Sysnative is hidden by default. But that's a Windows issue, not a cygwin issue. Cygwin doesn't handle other Windows paths either. > > ### Proposed solution > > Cygwin's /etc/profile sets the PATH. > > Could /etc/profile please also add /cygdrive/c/Windows/Sysnative to > the end of the PATH? It doesn't add any other Windows folders so why this one. You should do that in your ~/.profile. I'd suggest however to make those virtual folders visible from Cygwin, so you could find the hidden stuff from /Windows with ls, echo, or `find`. Thomas -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple