Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <902870527300AD44AA59BADBCFC8A94701DB6786@i2km03-ukbr.domain1.systemhost.net> From: duncan DOT loveday AT bt DOT com To: cygwin AT cygwin DOT com Cc: pechtcha AT cs DOT nyu DOT edu Subject: RE: SIGINT to bash behaves differently in rxvt as compared to con sole Date: Wed, 22 Jan 2003 17:04:38 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Igor, I run rxvt from a .bat file :- @echo off D: chdir \cygwin\bin rem set CYGWIN=tty rem set TERM=cygwin D:\cygwin\bin\rxvt -ls -fg green -bg black -cr red -sl 1000 -sr -fn 'Lucida Console-20' -e bash --login -i ...and no matter what I do I can't make the ^C do what I want ! I'm more or less resigned to living with it - thanks for taking the time to make suggestions. Duncan. -----Original Message----- From: Igor Pechtchanski [mailto:pechtcha AT cs DOT nyu DOT edu] Sent: 22 January 2003 16:51 To: Loveday,DAH,Duncan,YEE24 R Cc: cygwin AT cygwin DOT com Subject: RE: SIGINT to bash behaves differently in rxvt as compared to console Duncan, Come to think of it, it just might. Are you launching bash from cygwin.bat? If so, it is launched with a '--login' option, which will execute /etc/profile and others. What are the parameters to the bash that rxvt launches? Do you give the '--loginShell' or '-ls' option to rxvt? Try running 'rxvt -ls -e "bash --login -i"' and see if the behavior changes. Igor On Wed, 22 Jan 2003 duncan DOT loveday AT bt DOT com wrote: > David, > > Yes - I did try that just now and still no effect. > > The key question is....why does it behave differently in rxvt ? It's as if > rxvt launches bash with some different settings. > > Duncan. > > > -----Original Message----- > From: David Starks-Browning [mailto:starksb AT ebi DOT ac DOT uk] > Sent: 22 January 2003 10:44 > To: Loveday,DAH,Duncan,YEE24 R > Cc: cygwin AT cygwin DOT com > Subject: RE: SIGINT to bash behaves differently in rxvt as compared to > console > > > On Wednesday 22 Jan 03, duncan DOT loveday AT bt DOT com writes: > > Igor, > > > > Cheers - but I just tried that and it didn't have any effect. That > > variable is not set by default in either the console or rxvt. > > > > Bummer. > > > > Duncan. > > Did you set CYGWIN before starting *any* Cygwin programs? Put it in > your system environment and reboot. > > David > > > -----Original Message----- > > From: Igor Pechtchanski [mailto:pechtcha AT cs DOT nyu DOT edu] > > Sent: 21 January 2003 19:25 > > To: Loveday,DAH,Duncan,YEE24 R > > Cc: cygwin AT cygwin DOT com > > Subject: Re: SIGINT to bash behaves differently in rxvt as compared to > > console > > > > > > On Tue, 21 Jan 2003 duncan DOT loveday AT bt DOT com wrote: > > > > > I find on a Windows NT4 (SP6) platform with the latest versions > > > (downloaded today) of cygwin1.dll, rxvt, bash etc that if I run a > > > windows command script, say a.cmd, which in turn runs some other > > > process (e.g. a pause), if I hit ^C then the behaviour is different > > > in rxvt as compared to the cygwin console. > > > > > > In the console, the process being run by the command script is > > > always interrupted and then sometimes the rest of the command script > > > continues to execute but sometimes it says 'Terminate batch job > > > (Y/N)' in which case if I answer 'Y' the whole command script stops. > > > > > > In rxvt, the ^C returns me to a prompt but the process being run is not > > > interrupted and continues in the background. > > > > > > What I'd really like is for the ^C to consistently abort the whole > > > command script. > > > > > > Has anyone come across this and/or is able to offer advice/solutions ? > > > > > > Duncan > > > > Duncan, > > > > You need to add "tty" to your CYGWIN environment variable. Read > > for details. > > Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/