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

-C flag does not actually chdir before run #2353

Open
headius opened this issue Dec 29, 2014 · 0 comments
Open

-C flag does not actually chdir before run #2353

headius opened this issue Dec 29, 2014 · 0 comments

Comments

@headius
Copy link
Member

headius commented Dec 29, 2014

From http://jira.codehaus.org/browse/JRUBY-7090

When passing -C at the command line, we first boot the JVM and then process the chdir as a "virtual" chdir just for the JRuby instance. JRuby code will then see the virtual cwd, but other code within the JVM will only see the real cwd.

We could fix this by doing a real chdir before running the JVM, or by forcibly chdir'ing the JVM (probably only when we know -C was passed as a command-line arg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant