X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Sun, 3 Aug 2008 21:01:15 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: ctrl-c terminates ssh session using cmd.exe login shell Message-ID: <20080804010114.GD13008@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <2AF7DD0CE564C24EBACDABFAE55CC642039C1DDD AT srv DOT odcnet DOT local> <4895FB03 DOT 9060807 AT tlinx DOT org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4895FB03.9060807@tlinx.org> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Sun, Aug 03, 2008 at 11:37:55AM -0700, Linda Walsh wrote: > Stephen Quintero wrote: >> Using cmd.exe as the login shell, ctrl-c terminates the ssh session >> (rather than being propagated to the process on the remote server). > >> My question is - is there some way to work around this? >> For example, running bash as the login shell, and then running cmd.exe, >> does not fix the > --- > try > (export CYGWIN=tty;cygstart bash.exe) at a bash prompt... > > Basically you need to set the env var CYGWIN to contain 'tty', if you > already have > something in CYGWIN, you might want to use: > (export CYGWIN="tty $CYGWIN"; cygstart bash.exe)... > > You could set the env-var in a .bat file which then launches cygwin? > > You can make the 'tty' setting permanently part of your CYGWIN var by > adding > it to your windows environment (system properties, advanced, > Environ vars; user...) Sorry but this is bad advice. There is no reason to use CYGWIN=tty unless you have a clear need for it. Using CYGWIN=tty means that some non-cygwin programs will operate incorrectly so I wouldn't suggest this technique for a casual or first time user. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/