SIGINT to bash behaves differently in rxvt as compared to console

Igor Pechtchanski pechtcha@cs.nyu.edu
Tue Jan 21 20:31:00 GMT 2003


On 2003年1月21日 duncan.loveday@bt.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
<http://cygwin.com/cygwin-ug-net/using-cygwinenv.html> for details.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
 |\ _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_		igor@watson.ibm.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/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /