delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/03/26/16:45:45

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=YNwgKKhRTf56B/AjG6HU+muohy0gbbBS/4+mKGoFiaUi3OE3jOMJ9
MJK3viyf38MXd2gj4G9xYe2C2kX4zRC5kzxYrvqRCNFti+SWkKsuFMcy8knGeHR0
0gcbtD5Ygsn+FTxYUXzNMx+cix7Ht7m+bx7WvQA5GlJCxtnwlb1ewA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=L84DyfaHDr0VbxbZcBQ0ZdXH6P4=; b=spa6L/zUf8tToJgTSvr0tWILl7Xl
VTIdVjXmJYl+X/MgMxeEZeh1vTRYMZ5sLDQ9hg3OuteMQ1ycU4sslj85MUMhiq2M
UHEhgV3ywliS/911HbiZ0CYCFHfTrw/QblRhFbH6VW6XePSsg35cA9AvUo5sQVF8
qGGSZ+qpnWpTgKs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Maximus5 <ConEmu DOT Maximus5 AT gmail DOT com>
Subject: Re: launching sh/bash from windows console (cmd) results in application Segmentation Faults
Date: Wed, 26 Mar 2014 20:38:47 +0000 (UTC)
Lines: 19
Message-ID: <loom.20140326T213544-388@post.gmane.org>
References: <CAFjYYd6GnwhGsxicfsLjnyyK5QiyrC6X30dx8VK0XDfVWpbMvQ AT mail DOT gmail DOT com>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Scott Mitchell <scott.kevin.mitchell <at> gmail.com> writes:

> I am not sure if the is relevant but the "C:\Windows\System32\cmd.exe"
> I have been using is a 32 bit executable as reported by cygwin:
> $ file cmd.exe
> cmd.exe: PE32 executable (console) Intel 80386, for MS Windows
> 
> I am not sure if this is an alternative and I don't have any
> alternatives other than "C:\Windows\SysWOW64\cmd.exe" which is also
> reported as 32 bit.

That is because of redirection in Windows x64.
When you need to access (or run) any 64-bit windows app in system folder
from any 32-bit app, you need to use "sysnative" alias.

$ file /c/windows/sysnative/cmd.exe
/c/windows/sysnative/cmd.exe: PE32+ executable (console) x86-64, for MS 
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

- Raw text -


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