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:from:to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=Eie cp1mvpT3w9WnYwNK99LDCQMjmakzARO60aDHT6gNnvJV2FRZI4GV+ysqX4QIqm9t rsKvxSmp2fnPmaJUqo8lUwCDXHGpB4JpaxcnlFY9ruLxLy8AwibbiqT4+KpuQB7u znlqg/ibj3kbJnv55tfhVE8ZsGnHX92YwZ3htBDw= 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:from:to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; s=default; bh=JNRHhkBHG 4SSyqrbrv6xTuVVI7w=; b=Uhz496MrGwvBldib5C+UurC3DhOl1+4Zf8ZSGaOVj yI3h6zA5kMpwkEjRwRzv7ZN6SKZ2hTZB4AfdY3OtN2lC1P07aK3DjssfZsDK7PZM G/+FG+G0wuhRNaxB27NHNskOrsJwntI9SXnLOuMThXUpILDF1458UIaaBRKsf7a1 Gs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=1.1 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail1.bemta7.messagelabs.com X-Env-Sender: becao AT progress DOT com X-Msg-Ref: server-4.tower-158.messagelabs.com!1447702150!5630638!1 X-StarScan-Received: X-StarScan-Version: 7.19.2; banners=-,-,- X-VirusChecked: Checked From: Benjamin Cao To: "cygwin AT cygwin DOT com" Subject: RE: CTRL-C not working in sh login mode? Date: Mon, 16 Nov 2015 19:29:04 +0000 Message-ID: <393ce3c74d914e0e9d1ace4262830a10@ntmaexbe03.bedford.progress.com> x-ms-exchange-transport-fromentityheader: Hosted x-ems-proccessed: +CmIlJ+kdV7Z341JADFd9w== x-ems-stamp: cyXPmh/mzNnQoWP/5zfLFg== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id tAGJTTXj017895 -----Original Message----- From: Benjamin Cao Sent: Friday, November 13, 2015 3:46 PM To: 'cygwin AT cygwin DOT 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 | 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