From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (static.214.254.202.116.clients.your-server.de [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id EE7D5385800F for ; Tue, 17 Nov 2020 20:45:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EE7D5385800F Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kf7qX-00064O-Sn for cygwin@cygwin.com; Tue, 17 Nov 2020 21:45:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin@cygwin.com From: tealhill Subject: Please add /cygdrive/c/Windows/Sysnative to the default PATH Date: Tue, 17 Nov 2020 14:54:48 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 X-Mozilla-News-Host: news://news.gmane.io:119 Content-Language: en-US X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FORGED_MUA_MOZILLA, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NML_ADSP_CUSTOM_MED, SPF_HELO_NONE, SPF_PASS, 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@cygwin.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: , X-List-Received-Date: Tue, 17 Nov 2020 20:45:05 -0000 Dear all: ### Background information (you can skip this) I use Pluckeye 0.99.60 for Windows. This is a self-control tool, available online. It can help to stop me from visiting certain time-wasting websites. I also use Pluckeye's command-line component, pluck.exe. [I invoke the tool from Bash 4.4.12. I'm running Bash on 32-bit Cygwin 3.1.7(0.340/5/3) on 64-bit Windows 10 build 19041.] pluck.exe is a 64-bit tool, stored in C:\Windows\System32. ### 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@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. ### 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? ### Conclusion Thank you for reading this! Also, I thank all of you who help out with the Cygwin project.