-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Change Version switch output to finish with a newline #9485
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could, conceivably, break someone who has a script that's calling msbuild -nologo -version | script_that_cant_handle_newline
, right? I hate that I'm so conservative but I think I want it behind a changewave.
Yes, that's conceivable. And for someone who has written code like that and hits this change, the defect would be mysterious. |
I think I should change the |
That sounds fine to me. |
Should this be in a change wave and should it be change wave 17.10? |
Yes and yes, please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR!
I left one comment with question about the verification of two scenarios in one test, overall looks good :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the updates! Left one comment regarding the base branch to be merged
930db94
to
2a8e760
Compare
Fixes #9482
Context
The -version switch doesn't terminate its output with a newline which some shells don't like.
Changes Made
ShowVersion()
.Testing
Tested on Windows 10 and macOS 14.
Tested by running the full unit test suite and by manually running the
-version
switch under cmd (Windows), pwsh (Windows and macOS), and zsh (macOS).