-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Incorrect EOF handling in stdin::lines #112121
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
Comments
The underlying regression here is that the way we call The fix is simple, if anyone wants to claim this issue. This function needs to check for zero length input and immediately return |
Seems like a good first issue, I can take a stab at it. |
That would be great! |
Where would be a good place to write a test for this? |
Hm, this is a Windows specific issue so it should probably stay close to the affected code. Take a look at how |
|
It's a sub module so it should be able to access the private functions of its parent (aka
|
For sure, just misread the directory structure. |
I tried this code:
In windows terminal running Git Bash (also occured in Nushell, though I'm not sure if this is terminal or shell-land), I pressed Ctrl-Z + Enter to send EOF.
I expected to see this happen: The application would gracefully exit the loop
Instead, this happened: I saw this error message:
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: