From: Nobuyoshi Nakada Date: 2007-06-22T05:47:13+09:00 Subject: Re: Calling Ruby from within Ruby under Windows Hi, At Thu, 21 Jun 2007 20:56:49 +0900, Ronald Fischer wrote in [ruby-talk:256378]: > I get the error message: > > H:/tmp/x.rb:1:in ``': Exec format error - t2.rb (Errno::ENOEXEC) > from H:/tmp/x.rb:1 > > Is this a bug or intended behaviour? Not a bug. Cmd.exe uses ShellExecute or similar, which see the association. You may want to say, "then use it in ruby too", but no. It doesn't handle redirection. Once I had tried changing to see the association, it was very tiresome and others didn't seem to like to merge it. -- Nobu Nakada