Skip to content

Conversation

iCharlesHu
Copy link
Contributor

CombinedErrorOutput is a concrete error output type for subprocesses that combines the standard error output with the standard output stream.

When CombinedErrorOutput is used as the error output for a subprocess, both standard output and standard error from the child process are merged into a single output stream. This is equivalent to using shell redirection like 2>&1.

Resolves: #59

@parkera
Copy link

parkera commented Sep 10, 2025

Seems reasonable to me.

@jakepetroules
Copy link
Contributor

Note that the Swift project dropped support for Focal in Swift 6.2, I think that's why the CI started failing now. It should be removed.

https://forums.swift.org/t/dropping-support-for-ubuntu-20-04/81109

Copy link
Contributor

@jakepetroules jakepetroules left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay, thanks!

CombinedErrorOutput is a concrete error output type for subprocesses that combines the standard error
output with the standard output stream.

When `CombinedErrorOutput` is used as the error output for a subprocess, both
standard output and standard error from the child process are merged into a
single output stream. This is equivalent to using shell redirection like `2>&1`.
Swift 6.2 dropped support for Ubuntu 20.04 Focal
@iCharlesHu iCharlesHu force-pushed the charles/combined-stdout-stderr branch from 10de8e6 to b40e35b Compare September 11, 2025 17:07
@iCharlesHu iCharlesHu merged commit a040f9b into swiftlang:main Sep 11, 2025
35 checks passed
@iCharlesHu iCharlesHu deleted the charles/combined-stdout-stderr branch September 11, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

There should be dedicated API to collect merged stdout+stderr as a single stream (stdout and stderr going to the same underlying fd)
3 participants