From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57789 invoked by alias); 22 Dec 2016 19:22:11 -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 57777 invoked by uid 89); 22 Dec 2016 19:22:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:sk:smtp-ou, Hx-spam-relays-external:shaw.ca, H*r:shaw.ca, H*RU:shaw.ca X-HELO: smtp-out-so.shaw.ca Received: from smtp-out-so.shaw.ca (HELO smtp-out-so.shaw.ca) (64.59.136.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 Dec 2016 19:22:08 +0000 Received: from [192.168.1.100] ([174.0.238.184]) by shaw.ca with SMTP id K8wHcspBarvfEK8wIcxFWT; Thu, 22 Dec 2016 12:22:07 -0700 X-Authority-Analysis: v=2.2 cv=UeUhcOaN c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=Bn6qyvZqEgS8r-9RAJ4A:9 a=QEXdDO2ut3YA:10 Subject: Re: can't access /cygdrive/c/Windows/Sysnative ? References: <20161221201600.GA11116@ingber.com> <6d28035f-c6e0-9c02-eca8-7fbacfc55f3f@SystematicSw.ab.ca> To: cygwin@cygwin.com From: Brian Inglis Reply-To: Brian.Inglis@SystematicSw.ab.ca Message-ID: <279cffd0-6cf5-5745-c67c-d10d789836dc@SystematicSw.ab.ca> Date: Thu, 22 Dec 2016 19:22:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <6d28035f-c6e0-9c02-eca8-7fbacfc55f3f@SystematicSw.ab.ca> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfDMvPu5GyQ+0Te0MHuwjo2OFby7T8pky6/5I7rks4seVLZWmJR0Gl9Y+fCYu7WGpU9rR/aSJFjOoy7JQjmnBJUiPn+S/Ol/0YjkhwQeJgUDDW2QgxU5f YiLi99pmjoMehXwqFOJp/UJLGCGYLJCx2cMyZHMmPf/j89A3v8PYDQoMLHRu33xrU6IZmr90YVcRvw== X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00249.txt.bz2 On 2016-12-22 11:39, Brian Inglis wrote: > On 2016-12-21 13:16, Lester Ingber wrote: >> So, I guess that I should have seen that the Windows 10 Ubuntu >> bash.exe is actually written as a 32 bit code (they didn't use the >> 64-bit code as on my other true Ubuntu x64 platform?) from the >> PE32+ info?: >> # ls -l bash.exe >> -rwxr-x---+ 2 TrustedInstaller TrustedInstaller 70656 Oct 14 20:57 bash.exe >> # file bash.exe >> bash.exe: PE32+ executable (console) x86-64, for MS Windows > > which is exactly the same as Cygwin 64 bash: > > $ file /bin/bash /proc/cygdrive/c/WINDOWS/system32/bash > /bin/bash: PE32+ executable (console) x86-64, for MS Windows > /proc/cygdrive/c/WINDOWS/system32/bash: PE32+ executable (console) x86-64, for MS Windows The PE32 format is to allow execution from or by 32 bit world; the + hints it contains 64 bit code, as does the arch x86-64. >From Cygwin 32 the 64 bit WSL/UoW/BfW "bash" launcher is not visible as the 64 bit system directories are not in the PATH: $ file `which -a bash` /usr/bin/bash: PE32 executable (console) Intel 80386, for MS Windows > as they are both Windows console exes: Windows "bash" is just the > launcher for the console in which WSL/UoW/BfW runs -- trust MS to > pick another wrong and confusing name to be "cute" -- like calling > mintty "bash". ...forgot to add WSL/UoW/BfW bash, which is yet another 64 bit executable in ELF not PE32/+ format: $ file `which -a bash` /bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=54967822da027467f21e65a1eac7576dec7dd821, stripped -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- 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