Cygwin shell eats Windows exceptions?

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Thu Oct 13 22:52:00 GMT 2016


On 10/13/2016 03:00 PM, Bill Smith wrote:

<snip>

>> 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



More information about the Cygwin mailing list