Properly override base env with supplied values for spawn#5907
Properly override base env with supplied values for spawn#5907headius merged 1 commit intojruby:masterfrom
Conversation
|
This slipped through the cracks but can probably be merged for 9.2.10. Note that ShellLauncher is only used when we can't (or don't) use true native process lauching via PopenExecutor, so this code will only affect a subset of process logic. |
|
Remarkably, I didn't even know it was possible to have the same entry twice in env. |
Ah, this had me confused for a moment -- I'm on macOS, so would expect popen to be doing the thing. But it turns out:
Me neither! In retrospect it follows from the "series of contiguous |
|
@matthewd Can you come up with a spec for this behavior? |
I think it seems fine to require a current JRuby.
Hi!
I have no idea what I'm doing (and don't have a local dev environment, so I'm making things up without even a typecheck to back me up 😔), so this is probably disastrously wrong in detail, but...
I think something along these lines fixes #3428, as well as a wider issue:
POSIXly speaking (without having checked the relevant docs), that seems Bad. Even without the not-removing-nils issue, it appears to be a bit hit-or-miss which entry a process will choose to honour... I'm struggling to show it in isolation, but I got here because I was seeing the "old" value win in my real usage.