Skip to content

Order of combined output form shell.RunCommandAndGetOutputE #1228

@mimazaka

Description

@mimazaka

Hi guys,

I would like to asked if I should expect specific order of lines in output for func shell.RunCommandAndGetOutputE ?

I noticed output struct returns internal merged struct on call of output.Combined(). The second one contains comment that parallel writes should not be allowed.

I noticed that during manual debug of shell.RunCommandAndGetOutputE , especially with some slowdowns inside execution of code within wait group defined in readStdoutAndStderr, I obtained output with mixed lines form stdout and stderr.

Is there any solution to have an output in specific order e.g. standard error data stream first and standard output second?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions