REPOST: Re: Can't exit python with ^D under certain circumstances

Adam Sampson azz at gnu.org
Sat Dec 29 13:52:00 EST 2001


"Steve Holden" <sholden at holdenweb.com> writes:

> The real question is why the end of file you send to your local ssh
> client doesn't make it through to the Python interpreter as an EOF,
> but instead (apparently) gets transmitted as a character.

Perhaps Ctrl-D isn't the default EOF character on his system?
"stty -a" should show what eof is set to; to change it to Ctrl-D, do
"stty eof '^D'".

I've run into this before with intr being set to ^? instead of ^C on
an old HP machine...

-- 
Adam Sampson <azz at gnu.org>                  <URL:http://azz.us-lot.org/>

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool1-nwblwi.newsops.execpc.com!newsfeeds.sol.net!newspump.sol.net!newsfeed.direct.ca!look.ca!newsfeed.dacom.co.kr!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: Adam Sampson <azz at gnu.org>
Newsgroups: comp.lang.python
Subject: cmsg cancel <87itap271r.fsf at cartman.azz.us-lot.org>
Control: cancel <87itap271r.fsf at cartman.azz.us-lot.org>
Date: Mon, 31 Dec 2001 02:43:37 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.87itap271r.fsf at cartman.azz.us-lot.org>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009774519 27193 211.57.49.2 (31 Dec 2001 04:55:19 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 04:55:19 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list