From: Charlton Date: 2006-12-21T15:45:04+09:00 Subject: Re: Kernel#system bug? Thanks, Eric. I see the discussion over at ruby-core. Unfortunately, I don't really understand the resolution (if there is one). I'll keep my eyes on the mailing list. Cheers, Charlton Eric Hodel wrote: > On Dec 20, 2006, at 13:45, Charlton wrote: > > > Running Ruby 1.8.4 on Linux > > > > This problem seems to exist with the system() function but also has > > the > > same problem with IO#popen. Seems the working directory of a subshell > > can be affected by the command being executed? In the first call to > > popen, I'm just executing "env". In the second, I'm calling "env;" > > (with a semicolon. I encountered this because some commands I was > > calling with system() were unable to find files that should have been > > in the directory that I chdir'd to. > > See the recent discussion on ruby-core. > > -- > Eric Hodel - drbrain@segment7.net - http://blog.segment7.net > > I LIT YOUR GEM ON FIRE!