On Sunday, 3 April 2022 at 16:49:30 UTC+1 mirha...@gmail.com wrote: > CombinedOutput example listed above will always print only stdout, but not > combined stdout and stderr as intended to be shown in the example.
Works for me (macOS 10.12, go 1.18) If this doesn't work for you, it could be that the 'sh' on your system isn't a POSIX-compatible shell. What happens if you change 'sh' to 'bash'? If it still doesn't work, can you say some more about the system you're running on? Is it anything Windows-based (e.g. WSL or Cygwin?) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ae17712b-f9a1-47d2-bf9d-b266a700f786n%40googlegroups.com.