exec(env, command) and Process.spawn(env, command) throw Errno::ENOENT exception
--------------------------------------------------------------------------------

                 Key: JRUBY-5824
                 URL: http://jira.codehaus.org/browse/JRUBY-5824
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.6.2
         Environment: jruby 1.6.2 (ruby-1.9.2-p136) (2011-05-23 e2ea975) (Java 
HotSpot(TM) Client VM 1.6.0_24) [Windows 7-x86-java]
            Reporter: Marti Kaljuve


{code}
irb(main):001:0> Process.spawn({"LANG" => "C"}, "echo hello")
Errno::ENOENT: No such file or directory - {"LANG"=>"C"}
        from org/jruby/RubyProcess.java:962:in `spawn'
        from (irb):1:in `evaluate'
        from org/jruby/RubyKernel.java:1093:in `eval'
        from org/jruby/RubyKernel.java:1419:in `loop'
        from org/jruby/RubyKernel.java:1205:in `catch'
        from org/jruby/RubyKernel.java:1205:in `catch'
        from c:\jruby-1.6.2\bin\jirb:13:in `(root)'
{code}

{{exec}} and {{Process.spawn}} should support a Hash of environment variables 
as the first argument.
{code}exec([env,] command... [,options])
Process.spawn([env,] command... [,options]) => pid{code}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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


Reply via email to