Process.spawn (and related methods) ignore the chdir option
-----------------------------------------------------------
Key: JRUBY-6195
URL: https://jira.codehaus.org/browse/JRUBY-6195
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules, Ruby 1.9.2
Affects Versions: JRuby 1.6.5
Reporter: Daniel DeLeo
{{Process.spawn}} ignores the {{:chdir}} option:
{noformat}
jruby-1.6.5 :028 > Process.spawn("pwd", :chdir => '/tmp')
/Users/ddeleo/code/tevatron
=> 28210
ruby-1.9.3-p0 :001 > Process.spawn("pwd", :chdir => '/tmp')
=> 28244
ruby-1.9.3-p0 :002 > /private/tmp
{noformat}
If I'm following the code correctly, these methods get delegated to
{{runExternal}} in {{ShellLauncher}} which hard-codes the directory to the
current working directory:
{noformat}
File pwd = new File(runtime.getCurrentDirectory());
{noformat}
I'm not sure if this is related to JRUBY-5710 since the description is a bit
vague there.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email