From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119983 invoked by alias); 13 Oct 2016 21:05:52 -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 119975 invoked by uid 89); 13 Oct 2016 21:05:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.9 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY,NO_RDNS_DOTCOM_HELO,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*Ad:U*reply-to-list-only-lh, HReply-to:D*com, larry, HContent-type:flowed X-HELO: vms173009pub.verizon.net Received: from vms173009pub.verizon.net (HELO vms173009pub.verizon.net) (206.46.173.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 13 Oct 2016 21:05:50 +0000 Received: from vz-proxy-l008.mx.aol.com ([64.236.82.153]) by vms173009.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0OF0000HW7WTPZ10@vms173009.mailsrvcs.net> for cygwin@cygwin.com; Thu, 13 Oct 2016 16:05:21 -0500 (CDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=VvtTO6+n c=1 sm=1 tr=0 a=FJ1kTJ0/xm5uTekQe8vMdQ==:117 a=IkcTkHD0fZMA:10 a=CH0kA5CcgfcA:10 a=_oNQklMPik-lrsEB-90A:9 a=QEXdDO2ut3YA:10 Received: by 100.0.87.54 with SMTP id 41094a30; Thu, 13 Oct 2016 21:05:21 GMT Reply-to: cygwin@cygwin.com Subject: Re: Cygwin shell eats Windows exceptions? References: <384029be-4060-cb6b-d1e5-ea88cccb5999@Shaw.ca> <895baaa1-50d4-129f-1737-5621f7ed72b9@gmail.com> To: cygwin@cygwin.com From: "Larry Hall (Cygwin)" Message-id: <57FFFA02.8020203@cygwin.com> Date: Thu, 13 Oct 2016 22:52:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit X-SW-Source: 2016-10/txt/msg00184.txt.bz2 On 10/13/2016 03:00 PM, Bill Smith wrote: >> What if you 'cmd.exe /c foo.exe' from the Cygwin shell? Will the Dialogue >> popup box occur? If so you can provide a sh script foo to execute the >> foo.exe file. > [Bill Smith] > Thanks for the suggestion but that doesn't work. If I try to open a > command prompt from a Cygwin shell (just type in "cmd"), I get the same > behavior where I don't see the popup. If I run "cygstart cmd.exe", then > running the program from the command prompt will generate the popup. I believe the heart of your question is whether command-line utilities run under a Cygwin shell react to a terminal exception the same way as when run outside the shell. The answer, as you've found, is no, they don't. This is by design and there isn't a "switch" to flip to get around it. The point is that on Linux/Unix platforms, command-line utilities do not pop up windows, or any other kind of UI, which seek user input. Doing so can cause scripted processes to appear to "hang" and clutter the desktop. There was a time, long ago, where Cygwin command line utilities would do exactly that and the behavior was changed to return the error code and move on, just as would happen under Linux/Unix. Hope that helps, -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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