Allow a single - as a valid command line loose argument (e.g. see the regular cat, which uses - as an alias for stdin: echo something | cat foo.txt bar.txt -)
In readline.js, stdin was paused too late, after a request to the terminal had been printed to it. So if stdin happened to be in flowing mode at that time, the request would go nowhere, the stdin.read() call in readStdIn_() would return nothing, and the prompt string wouldn't get printed.
TBR @gaurave
Less trivial ones:
-
as a valid command line loose argument (e.g. see the regularcat
, which uses-
as an alias for stdin:echo something | cat foo.txt bar.txt -
)readline.js
,stdin
was paused too late, after a request to the terminal had been printed to it. So ifstdin
happened to be in flowing mode at that time, the request would go nowhere, thestdin.read()
call in readStdIn_() would return nothing, and the prompt string wouldn't get printed.