-
Notifications
You must be signed in to change notification settings - Fork 18k
os/exec: StdinPipe on Windows is not successful #19452
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
Did you find a specific bug in the standard library? If so, please provide a shorter piece of code to reproduce it. Otherwise, please take it to https://github.com/golang/go/wiki/Questions as that's where you should go for chunks of code that don't work as you expected. It's likely an issue with your code. |
You say "are not successful" but you don't say what happens. What precisely happens? Do you get an error? Does the program misbehave in some way? I don't understand your program: you call |
@ianlancetaylor I don't get any error , just don't write anything to the pipe
|
I apologize, I did miss the fact that you do write to the pipe. I tried running this variant of your program on GNU/Linux, and it printed
|
Two things you should certainly do are check the error return of |
@ianlancetaylor Run on GNU/Linux and OSX and it printed 123 ,but run on windows it printed nothing |
@ianlancetaylor thanks... |
I'm an idiot, so don't trust anything I say. |
I'm going to close this for now until there's evidence pointing at it being Go's problem. Feel free to reopen if you have more info. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
Go 1.8
My code:
can not automatically standard input when the command starts.
I changed a kind of writing
the code
The two are not successful .
when I input "123" by Keyboard ,is ok.
who can help me,thanks.
The text was updated successfully, but these errors were encountered: