From: Roger Pack Date: 2008-12-18T14:59:09+09:00 Subject: [ruby-core:20627] Re: system() issues on Windows > Subject: [ruby-core:20606] system() issues on Windows > I put together a spec of my grievances with system() on Windows and > made a simple patched implementation, > > http://drake.rubyforge.org/tmp/system_spec_kernel.html > > http://drake.rubyforge.org/tmp/system_spec_alt.html > http://github.com/quix/alt_system/tree/master/lib/alt_system/alt_system.rb > > Are there any test failures which should succeed? > > The failures include: > > * system("x/y.bat") fails because it is interpreted as option /y > being passed to command x. > > * system("y") fails when y.bat is in the current directory and "." > is in PATH. "y" succeeds in the console shell window. Similar > problems occur when passing relative or absolute paths. > > * system("c:/x/z", "1") fails to spawn c:/x/z.exe. > > * Variables are not expanded: > system(%{ruby -e "p '%PATH%'"}) #=> "%PATH%" They look like bugs to me. Maybe file something on redmine for them? -=R