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

cmd/go: -x output is split between stdout and stderr #6362

Closed
alexbrainman opened this issue Sep 11, 2013 · 2 comments
Closed

cmd/go: -x output is split between stdout and stderr #6362

alexbrainman opened this issue Sep 11, 2013 · 2 comments
Milestone

Comments

@alexbrainman
Copy link
Member

First line goes to stdout. The rest to stderr:

# go build -x 2>/dev/null
WORK=/tmp/go-build688708732
# go build -x 2>&1 >/dev/null | head -n2
mkdir -p $WORK/runtime/_obj/
mkdir -p $WORK/
#

Not sure, if it is intentional.

Alex
@robpike
Copy link
Contributor

robpike commented Sep 13, 2013

Comment 1:

The go command is inconsistent about this and should probably be cleaned up. What should
-n do? It should be be the same as -x but I don't believe it is.

Labels changed: added priority-later, go1.2maybe, removed priority-triage.

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Sep 19, 2013

Comment 2:

This issue was closed by revision ba10318.

Status changed to Fixed.

@rsc rsc added this to the Go1.2 milestone Apr 14, 2015
@rsc rsc removed the go1.2maybe label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants