Project

General

Profile

Feature #1482

Updated by nobu (Nobuyoshi Nakada) about 7 years ago

=begin 
  Here is pretty convoluted test case: 

 ```ruby 
 
 
  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 

Back