Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConsoleReader::readLine() doesn't return null when end of stream is reached #9

Open
sunchao opened this issue Oct 23, 2014 · 1 comment

Comments

@sunchao
Copy link

sunchao commented Oct 23, 2014

According to the doc, readLine should return null when EOF is reached. However in the case that terminal is not supported, it will return empty string instead. This seems like a bug.

@nrg4878
Copy link

nrg4878 commented Jan 26, 2015

I have run into this issue too when reading a line from a file created using something like this
$ echo -n "select * from testTable;" > /tmp/testFile.script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants