delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/11/17/15:45:53

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BA900385800F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1605645906;
bh=wr94cjaSD0mvU9c/5YJXT7QvqYGVBJJguRshDxeXrcs=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=NLPIkkvC5A8WgMrieQKvOlDO6PCeh49QxOi0QeWiTxnDALHQbPd+GRPe2S4gvjmw9
a461CSAdDI/4Kis8Jg4vln0DIL7DjhF+mnvAOqp+Y3MSE8JF2iUZYCBJoH5UXeoUCl
srTtCsrvKGv0QYfRw7pRKwHt0SLlsx14hbTOqYMg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EE7D5385800F
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
Subject: Please add /cygdrive/c/Windows/Sysnative to the default PATH
Date: Tue, 17 Nov 2020 14:54:48 -0500
Message-ID: <rp19q9$12ic$1@ciao.gmane.io>
Mime-Version: 1.0
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
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: tealhill via Cygwin <cygwin AT cygwin DOT com>
Reply-To: tealhill <tealhill AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

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 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.

### 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.

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019