Commit 1bea5350 authored by Jesus Cea's avatar Jesus Cea

Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop

parent e9e2d420
...@@ -209,6 +209,8 @@ class Cmd: ...@@ -209,6 +209,8 @@ class Cmd:
if cmd is None: if cmd is None:
return self.default(line) return self.default(line)
self.lastcmd = line self.lastcmd = line
if line == 'EOF' :
self.lastcmd = ''
if cmd == '': if cmd == '':
return self.default(line) return self.default(line)
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment