From: Duckz King_duckz Date: 2010-02-09T19:52:01+09:00 Subject: Re: Working directory for external commands @Marnen Laibow-Koser: I didn't hear of it, but from a quick look it seems to allow a much cleaner solution, I'll look into that! Anyways, the global Dir problem has already occurred to me in other situations, and I'm still interested in finding a safe solution! I wonder why popen or system don't allow an optional parameter to specify the working directory! @Robert Klemme: Thanks for the hint, I guess I'll follow that path to write an intial version, before looking in depth into Grit. Are there any issues with fork implementation on Windows in Ruby 1.9.1? Still, I find it a shame you can't specify the cwd as a parameter (as in CreateProcess() on Windows for example, but I'm sure most OS have an equivalent). -- Posted via http://www.ruby-forum.com/.