diff options
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -998,6 +998,8 @@ class Cmd(cmd.Cmd): self.poutput(safe_prompt, end='') self.stdout.flush() line = self.stdin.readline() + if len(line) == 0: + line = 'eof' else: # we are reading from a pipe, read the line to see if there is # anything there, if so, then decide whether to print the |