public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* CTRL-C not working in sh login mode?
@ 2015-11-13 20:46 Benjamin Cao
  0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Cao @ 2015-11-13 20:46 UTC (permalink / raw)
  To: cygwin

Hi,

We invoke a shell using a *.bat file doing sh --login.

We have discovered that when wanting to kill a long running process with CTRL-C, it does not work.

Is this expected behavior?

I've found that to be the same even if I am doing bash --login -i in my *.bat file.

Any guidance would be greatly appreciated.

Thanks,
Ben Cao

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: CTRL-C not working in sh login mode?
@ 2015-11-16 19:29 Benjamin Cao
  0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Cao @ 2015-11-16 19:29 UTC (permalink / raw)
  To: cygwin

-----Original Message-----
From: Benjamin Cao 
Sent: Friday, November 13, 2015 3:46 PM
To: 'cygwin@cygwin.com'
Subject: CTRL-C not working in sh login mode?

Hi,

We invoke a shell using a *.bat file doing sh --login.

We have discovered that when wanting to kill a long running process with CTRL-C, it does not work.

Is this expected behavior?

I've found that to be the same even if I am doing bash --login -i in my *.bat file.

Any guidance would be greatly appreciated.


Hi,

Just wanted to provide some additional information to make things a bit clearer.

Running either "sh -login" or "bash --login -I" from a *.bat file will cause some commands to not be broken with CTRL-C.

For example, this test loop cannot be broken with CTRL-C when I start Cygwin up from the *.bat file.

echo foo | perl -e 'while(1) {sleep 60;}'

Or if I do "cat <file_name> | more", CTRL-C does not work in that case.

Again, is that expected behavior?

Thanks,
Ben Cao

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-16 19:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-13 20:46 CTRL-C not working in sh login mode? Benjamin Cao
2015-11-16 19:29 Benjamin Cao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).