Kaydet (Commit) a9837d81 authored tarafından Jesus Cea's avatar Jesus Cea

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

üst ed1ac587
...@@ -205,6 +205,8 @@ class Cmd: ...@@ -205,6 +205,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