-
Notifications
You must be signed in to change notification settings - Fork 39
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
For Windows OS, revert the usage of cmd.exe by default (new option) #110
base: master
Are you sure you want to change the base?
For Windows OS, revert the usage of cmd.exe by default (new option) #110
Conversation
c7a10b4
to
84109d4
Compare
8f20b85
to
971980d
Compare
971980d
to
ff8e0e4
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 #109) not relevant 😢 ? |
I will try to pick this up next month. |
Thank you ! |
😁 (#FriendlyBump) |
Thanks for the note. I think both Bourne Shell and Cmd Shell must go. There is no use for that. |
=> We abandon this PR, and perhaps #109 depending the relevance ? |
I first need to understand why this was done at all. Maybe lack of knowledge. Currently, I don't see a reason why we should wrap these command into a shell execution at all. |
From what I've always understood only with a new shell you can isolate system properties and environment variables. |
System properties are pure args to a process. There is no connection to the parent process. If want to isolate env vars, you can do that easily with the ProcessBuilder. It works just fine. Moreover, you cannot start with a nude environment because some processes expect default env vars and they won't be present. Just set those you need and that's it. |
This PR is an update of old previous staling PR #42
cf. #17 (comments from May 2018): Revert the usage of
cmd.exe
by default (on Windows), because prevents the destroy/kill launched by this way whenCTRL+C
.Allow this behavior by the usage of a new method:
This PR should be chosen or #109.