This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Baffled: is it Cygwin (64-bits) or Windows that causes the invocation of regedit (from bash) to fail?
- From: "Houder" <houder at xs4all dot nl>
- To: cygwin at cygwin dot com
- Date: Mon, 12 May 2014 18:51:33 +0200
- Subject: Re: Baffled: is it Cygwin (64-bits) or Windows that causes the invocation of regedit (from bash) to fail?
- Authentication-results: sourceware.org; auth=none
- References: <849f1f5420ebf77d7a591d6c9b6bfa4b dot squirrel at webmail dot xs4all dot nl> <536E339A dot 6030200 at breisch dot org> <6f9d939cc604437def11828435a67f96 dot squirrel at webmail dot xs4all dot nl> <635595705 dot 20140512163815 at yandex dot ru>
Hi Andrey,
>> Another issue you might run into ...
>
>> I was surprised to find, that 32-bits bash reported /drv/c/Windows/regedit.exe as a different file,
>> compared to what 64-bits bash reported.
>
> No surprise here. To reach 64-bit regedit (and other utilities) from 32-bit
> application, you have to address it through %SystemRoot%\Sysnative path.
Hold on. I wrote '/drv/c/Windows/regedit.exe' (irrespective of its bit-ness).
BUT! See bottom of this message.
>
>> Note: 32-bits cmd and 64-bits cmd report c:/Windows/regedit.exe as the SAME
>> file. Which, of course, made me wonder ...
>
> I wonder, how do you check that?
C:\Users\Henri> dir /tc /4 c:\Windows\regedit.exe # using 32-bits cmd
Volume in drive C has no label.
Volume Serial Number is 12F0-A5C0
Directory of c:\Windows
14-07-2009 01:27 427.008 regedit.exe
C:\Users\Henri> dir /tc /4 c:\Windows\regedit.exe # using 64-bits cmd
Volume in drive C has no label.
Volume Serial Number is 12F0-A5C0
Directory of c:\Windows
14-07-2009 01:27 427.008 regedit.exe
Size and date/time of creation are the same.
>> Searching the internet again, I got the understanding, that there has been
>> been a time in which a request for c:/Windows/regedit.exe was redirected to
>> c:/Windows/SysWOW64/regedit.exe (in case of a 32-bits application).
>
>> As far as I can tell, this redirection no longer applies (meaning, as far as
>> can tell, MS changed its mind here).
>
> How did you found that?
For instance, here
http://msdn.microsoft.com/en-us/library/windows/desktop/aa384187%28v=vs.85%29.aspx
it said
Access to %windir%\regedit.exe is redirected to %windir%\SysWOW64\regedit.exe (in case of
32-bits application)
The current situation on my W7 does NOT agree with the above statement.
Henri
-----
Here it shows that 32-bits Cygwin "sees" (i.c. ls, stat) a different file at /drv/c/Windows ...
Using my 32-bits Cygwin installation (DOS-box, bash) at e:/Cygwin
@@ ls -l /drv/c/Windows/regedit
-rwxrwx---+ 2 TrustedInstaller TrustedInstaller 398336 Jul 14 2009 /drv/c/Windows/regedit
@@ stat /drv/c/Windows/regedit
File: `/drv/c/Windows/regedit'
Size: 398336 Blocks: 392 IO Block: 65536 regular file
Device: 12f0a5c0h/317760960d Inode: 281474976748756 Links: 2
Access: (0770/-rwxrwx---) Uid: (4294967294/TrustedInstaller) Gid: (4294967294/TrustedInstaller)
Access: 2009-07-14 01:17:08.803392200 +0200
Modify: 2009-07-14 03:14:30.457000000 +0200
Change: 2014-05-11 18:34:40.326326000 +0200
Birth: 2009-07-14 01:17:08.803392200 +0200
Using my 64-bits Cygwin installation (DOS-box, bash) at e:/Cygwin64:
64-@@ ls -l /drv/c/Windows/regedit
-rwxrwx---+ 2 TrustedInstaller TrustedInstaller 427008 Jul 14 2009 /drv/c/Windows/regedit
64-@@ stat /drv/c/Windows/regedit
File: `/drv/c/Windows/regedit'
Size: 427008 Blocks: 420 IO Block: 65536 regular file
Device: 12f0a5c0h/317760960d Inode: 281474976726615 Links: 2
Access: (0770/-rwxrwx---) Uid: (4294967294/TrustedInstaller) Gid: (4294967294/TrustedInstaller)
Access: 2009-07-14 01:27:10.125698800 +0200
Modify: 2009-07-14 03:39:29.639000000 +0200
Change: 2014-05-11 18:35:26.892407800 +0200
Birth: 2009-07-14 01:27:10.125698800 +0200
Note:
- 32-bits Cygwin invokes 64-bits regedit in case of /drv/c/Windows/regedit
(yes, different from the one it "sees" (i.c. ls, stat) !!!!!
- 32-bits Cygwin invokes 32-bits regedit in case of /drv/c/Windows/SysWOW64/regedit
- in case of /drv/c/Windows/System32/regedit: dito
- /drv/c/Windows/SysNative/regedit: does NOT exist!
(the 64-bits version only lives in c:/Windows)
=====
--
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