We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3930e1 commit 41ea474Copy full SHA for 41ea474
1 file changed
cmd2.py
@@ -998,6 +998,8 @@ def pseudo_raw_input(self, prompt):
998
self.poutput(safe_prompt, end='')
999
self.stdout.flush()
1000
line = self.stdin.readline()
1001
+ if len(line) == 0:
1002
+ line = 'eof'
1003
else:
1004
# we are reading from a pipe, read the line to see if there is
1005
# anything there, if so, then decide whether to print the
0 commit comments