From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12047 invoked by alias); 12 May 2014 16:51:40 -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 12038 invoked by uid 89); 12 May 2014 16:51:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_50,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp-vbr9.xs4all.nl Received: from smtp-vbr9.xs4all.nl (HELO smtp-vbr9.xs4all.nl) (194.109.24.29) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 12 May 2014 16:51:37 +0000 Received: from webmail.xs4all.nl (dovemail16.xs4all.nl [194.109.26.18]) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id s4CGpWFq096429 for ; Mon, 12 May 2014 18:51:33 +0200 (CEST) (envelope-from houder@xs4all.nl) Received: from 83.163.110.75 (SquirrelMail authenticated user incog) by webmail.xs4all.nl with HTTP; Mon, 12 May 2014 18:51:33 +0200 Message-ID: In-Reply-To: <635595705.20140512163815@yandex.ru> References: <849f1f5420ebf77d7a591d6c9b6bfa4b.squirrel@webmail.xs4all.nl> <536E339A.6030200@breisch.org> <6f9d939cc604437def11828435a67f96.squirrel@webmail.xs4all.nl> <635595705.20140512163815@yandex.ru> Date: Mon, 12 May 2014 17:13:00 -0000 Subject: Re: Baffled: is it Cygwin (64-bits) or Windows that causes the invocation of regedit (from bash) to fail? From: "Houder" To: cygwin@cygwin.com User-Agent: SquirrelMail/1.4.18 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00228.txt.bz2 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