Can't exit python with ^D under certain circumstances
Kaden
sfam at mailandnews.com
Fri Dec 28 12:40:25 EST 2001
On Fri, 28 Dec 2001 11:33:43 -0500, Steve Holden <sholden at holdenweb.com>
wrote:
> "wealthychef" <wealthychef at yahoo.com> wrote in message
> news:mailman.1009322789.23019.python-list at python.org...
>> Hi, this is weird to me, don't know how to fix.
>> On my local python installation on machine A in a normal shell, ^
>> D works to exit Python as expected. On machine B on the
>> console, ^D also works fine, but if I ssh to machine B from
>> machine A and try to exit Python with ^D, Python does not exit,
>> instead I get the following strange error message:
>>
>> >>> ^D
>> File "<stdin>", line 1
>> c
>> ^
>> SyntaxError: invalid syntax
Have you checked your TERM envariable? Try checking what it's set to
while at the local console. Then ssh into the remote machine and check
what that one is set to. I've got a machine here at home that sets my
TERM to dumb if I ssh into it for some reason. You can imagine the kinds
of problems that causes :)
If this is the problem, just explicitly set it in your ~/.profile ||
~/.bashrc || ~/.cshrc || whatever. Should clear it up.
More information about the Python-list
mailing list