-
Notifications
You must be signed in to change notification settings - Fork 1
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
Stray characters in stdout, stderr #4
Comments
I’ve just added a test for this issue, although note that the failure is not visible in the test itself but in the tests console log.
Two things to note:
|
The problem I’m having with this is that it’s not possible to reliably parse command output due to these stray characters appearing in the output. |
@feinstruktur Thanks so much for the failing test, I think I caught the issue. I am however not able to reproduce the issue on my machine, can you please try to apply the git diff attached here to your branch and see if it fixes it. Please let me know if this fixes it :) |
Yep, I think that did it and null termination was exactly what this looked like :) I've tried this in my project and I'm not getting the junk anymore. I still see the stray line Thank for the quick fix! |
I think that the \n is correct here. Would you mind opening a PR to fix the issue? |
The new line certainly is, I was wondering about the whole line.
Happy to open a PR first thing tomorrow morning!
…-sas
--
Sent from a phone, please excuse terseness.
On 12 Feb 2017, at 19:46, Omar Abdelhafith ***@***.***> wrote:
I think that the \n here is correct here.
Would you mind opening a PR to fix the issue?
(I could do it but copying the test from your PR looks kinda wrong :D)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Fixes #4 (Stray characters in stdout, stderr)
When running commands with
echo
configuration I’m seeing stray characters in the console:I first noticed this also when reading from
RunResults.stdout
and trying to parse it. It looks like something is reading past EOF. I once got an entire extra line from another command in the output stream.The text was updated successfully, but these errors were encountered: