From: shibata.hiroshi@... Date: 2014-01-30T06:16:25+00:00 Subject: [ruby-core:60256] [ruby-trunk - Feature #1482] Kernel.exec doesn't respect COMSPEC environment variable on Windows Issue #1482 has been updated by Hiroshi SHIBATA. Target version changed from 2.1.0 to current: 2.2.0 ---------------------------------------- Feature #1482: Kernel.exec doesn't respect COMSPEC environment variable on Windows https://bugs.ruby-lang.org/issues/1482#change-44732 * Author: Evgeniy Dolzhenko * Status: Assigned * Priority: Normal * Assignee: Nobuyoshi Nakada * Category: core * Target version: current: 2.2.0 ---------------------------------------- =begin Here is pretty convoluted test case: puts ENV["COMSPEC"] # => "C:\WINDOWS\system32\mycmd.exe" File.open("1.bat", "w") { |f| f.write("time") } # create test batch file with command which waits for user input Kernel.exec("1.bat") # now the process tree inspection shows that the "C:\WINDOWS\system32\cmd.exe" is still used to interpret 1.bat =end ---Files-------------------------------- 0001-win32.c-use-COMSPEC.patch (2.03 KB) -- http://bugs.ruby-lang.org/