Repository navigation
Conversation
965bed7 to
6168f2b
Compare
6168f2b to
5f9a5ec
Compare
|
Note: GitHub action verify problem with Java 16-ea is not part of this PR. |
|
(@michael-o: Requested changes have been done) |
See #116 |
|
Is this PR (or #110) not relevant 😢 ? |
5b90f41 to
5c05119
Compare
|
@slachiewicz Rebase this PR after closing #110 |
5c05119 to
436fb68
Compare
|
Checked against current master:
|
436fb68 to
66dfeac
Compare
66dfeac to
723e794
Compare
|
Hi @slachiewicz, rebase done and comments/suggestions applied (except one, not agree with it). |
|
Check also We will probably break something but in worst case we can fix it here or in projects |
slachiewicz
left a comment
There was a problem hiding this comment.
Recommendation: fine to merge once the release target is settled. This changes behavior that has shipped since 3.1.0 (Windows commands are no longer wrapped in cmd.exe), so please label it breaking and land it in a minor or major release, not a 4.1.x patch. Callers that rely on extensionless scripts or on shell built-ins (echo, dir) will need to call cmd /X /C explicitly. The PR already documents this in the Javadoc.
Evidence: the head is rebased and mergeable, and all 7 Verify jobs pass on it, including windows-latest on JDK 8 and 25. execute() now uses getRawCommandline() in both branches, and toString() and size() no longer use the shell wrapper. That covers the earlier getCommandline() and toString() points.
Small points:
- The PR description still says the wrapper was removed in 3.0.15 except for 3.1.0. It is present in every release from 3.1.0 to 4.1.0, so please correct that.
- The Copilot thread about mvn.cmd is still open. axel3rd's reply (the test targets the Windows Maven script on purpose) is reasonable, so resolve the thread.
Prefix
Done: Best regards |
This PR is an update of old previous staling PR #41
cf. #17 (comments from May 2018): Revert the usage of
cmd.exe(on Windows), because prevents the destroy/kill launched by this way whenCTRL+C.For historical context, implicit shell execution was removed in 3.0.16 and restored specifically for Windows in 3.1.0 to address #17. The Windows shell wrapper has remained in place in every release since 3.1.0.
On Windows, the usage of cmd builtin (like
echo) or.cmd/.baton PATH should be implemented by the client/user.Another approach could be a dedicated option: See #110