Skip to content
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

Process chdir option sooner so execFillarg sees it #8218

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

headius
Copy link
Member

@headius headius commented Apr 30, 2024

This is a bit hacky due to the way we handle chdir on top of posix_spawn. The logic for making the command line use sh and cd lives in execFillarg, since it must handle the case where the virtual CWD is not the same as the JVM CWD. In order to make sure that processing also happens for incoming chdir: options, this patch pre-processes the options hash just for chdir.

Fixes #8216

This is a bit hacky due to the way we handle chdir on top of
posix_spawn. The logic for making the command line use sh and cd
lives in execFillarg, since it must handle the case where the
virtual CWD is not the same as the JVM CWD. In order to make sure
that processing also happens for incoming chdir: options, this
patch pre-processes the options hash just for chdir.

Fixes jruby#8126
@headius headius added this to the JRuby 9.4.8.0 milestone Apr 30, 2024
@headius headius merged commit a0507b7 into jruby:master Apr 30, 2024
72 of 74 checks passed
@headius headius deleted the missing_popen_options branch April 30, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IO.popen fails to find executable with chdir: kwarg
1 participant