Commit c448609
committed
Fix non-native IO.popen env + kwargs handling
When both an env hash and a keyword arguments hash were provided
here, the env hash logic would decrement argc resulting in the
keyword arguments hash detection accessing the wrong argument. The
fix here aligns this logic with the newer PopenExecutor and ensures
the keyword arguments hash is handled first.
The argument processing logic for these two popen implementations
should be unified, but this simple fix gets popen working better
right now.
Fixes jruby#92951 parent 831e875 commit c448609
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4518 | 4518 | | |
4519 | 4519 | | |
4520 | 4520 | | |
4521 | | - | |
4522 | | - | |
| 4521 | + | |
| 4522 | + | |
| 4523 | + | |
4523 | 4524 | | |
4524 | 4525 | | |
4525 | 4526 | | |
4526 | | - | |
4527 | | - | |
| 4527 | + | |
| 4528 | + | |
| 4529 | + | |
4528 | 4530 | | |
4529 | 4531 | | |
4530 | 4532 | | |
| |||
0 commit comments