Skip to content

WIP: Allow Start-Process to redirect stdout and stderr to the same file#25019

Open
g-chauvel wants to merge 3 commits intoPowerShell:masterfrom
g-chauvel:start-process-stdout-stderr
Open

WIP: Allow Start-Process to redirect stdout and stderr to the same file#25019
g-chauvel wants to merge 3 commits intoPowerShell:masterfrom
g-chauvel:start-process-stdout-stderr

Conversation

@g-chauvel
Copy link

@g-chauvel g-chauvel commented Feb 14, 2025

PR Summary

When redirecting stdout and stderr to different files, it is not possible to link errors to the standard output after completion.
This Pull Request makes it possible to get a similar output file to what a user would see if the process were executed manually.

to merge after #25061

PR Context

This stdout/stderr exclusion has been present since Process.cs was added to the repository (60b3b30?diff=split#diff-a87e81856755f9e2a0f6002cf90c4cc3d0a4d1e81394bee7ac61543f71138b71R2161-R2165)

PR Checklist

@g-chauvel g-chauvel requested a review from a team as a code owner February 14, 2025 20:22
@g-chauvel g-chauvel force-pushed the start-process-stdout-stderr branch from 7ca979c to f2d8d9c Compare February 14, 2025 20:30
@iSazonov
Copy link
Collaborator

@g-chauvel Please add PR description and context. Usually we should discuss in an issue before pull PR.

@g-chauvel g-chauvel changed the title WIP: Allow Start-Process stdout & stderr redirections to same file Allow Start-Process stdout & stderr redirections to same file Feb 15, 2025
@g-chauvel g-chauvel force-pushed the start-process-stdout-stderr branch from f2d8d9c to bed91ae Compare February 18, 2025 06:33
@microsoft-github-policy-service microsoft-github-policy-service bot added the Review - Needed The PR is being reviewed label Feb 25, 2025
@microsoft-github-policy-service
Copy link
Contributor

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

@g-chauvel g-chauvel force-pushed the start-process-stdout-stderr branch from bed91ae to 11f78a5 Compare February 27, 2025 21:06
@g-chauvel g-chauvel changed the title Allow Start-Process stdout & stderr redirections to same file Allow Start-Process to redirect stdout and stderr to the same file Feb 27, 2025
@g-chauvel g-chauvel changed the title Allow Start-Process to redirect stdout and stderr to the same file WIP: Allow Start-Process to redirect stdout and stderr to the same file Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review - Needed The PR is being reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants