public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: can't access /cygdrive/c/Windows/Sysnative ?
Date: Thu, 22 Dec 2016 19:22:00 -0000	[thread overview]
Message-ID: <279cffd0-6cf5-5745-c67c-d10d789836dc@SystematicSw.ab.ca> (raw)
In-Reply-To: <6d28035f-c6e0-9c02-eca8-7fbacfc55f3f@SystematicSw.ab.ca>

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

      reply	other threads:[~2016-12-22 19:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-21 17:09 Lester Ingber
2016-12-21 18:12 ` Brian Inglis
2016-12-21 20:16   ` Lester Ingber
2016-12-22  1:07     ` Mark Geisert
2016-12-22 12:51     ` Andrey Repin
2016-12-22 18:39     ` Brian Inglis
2016-12-22 19:22       ` Brian Inglis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=279cffd0-6cf5-5745-c67c-d10d789836dc@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).