gosh: Add Cmd.CombinedOutput, and simplify stdout/stderr ordering

The Cmd.CombinedOutput method works like the exec.CombinedOutput
method; it returns the combined stdout/stderr, in the order they
were written.

The simplification to stdout/stderr ordering is to always make
writes to stdout and stderr writers synchronous, regardless of
whether we have the same underlying writers capturing both of
them.  This also has the nice property of ensuring that multiple
writers that capture both stdout and stderr will always see the
results in the same order.

Change-Id: Ib2b15092d3bd9d1566d98487965336c1d1c67aca
3 files changed
tree: 8f30549d49f6b25e4b5a3c76e262acfd8453f453
  1. cmd/
  2. cmdline/
  3. dbutil/
  4. envvar/
  5. gosh/
  6. host/
  7. ibe/
  8. metadata/
  9. netconfig/
  10. netstate/
  11. set/
  12. textutil/
  13. timing/
  14. toposort/
  15. vlog/
  16. .gitignore
  17. .godepcop
  18. AUTHORS
  19. CONTRIBUTING.md
  20. CONTRIBUTORS
  21. LICENSE
  22. PATENTS
  23. README.md
  24. VERSION
README.md

This repository contains general purpose libraries used by the Vanadium project. TEST