[Rubyinstaller-devel] exec bug in RC2

Allen Hewes allen at decisiv.net
Thu Dec 18 22:09:22 EST 2008

Yo Luis,

> both exec() and system() calls are broken on Windows, mostly all the
> multiple arguments calls changed behavior from patchlevel 111 to 287.

Seems to be the changes from p114 to p230:
C:\>which ruby

C:\>ruby -v
ruby 1.8.6 (2008-03-03 patchlevel 114) [i386-mswin32]

C:\>ruby -e 'exec "notepad.exe", "test.txt"'
C:\>ruby -e 'exec "notepad", "test.txt"'
C:\>ruby -e 'exec "notepad.exe"'

C:\Workspace\ruby-1.8.6-p230\win32>which ruby

C:\Workspace\ruby-1.8.6-p230\win32>ruby -v
ruby 1.8.6 (2008-06-20 patchlevel 230) [i386-mswin32]

C:\Workspace\ruby-1.8.6-p230\win32>ruby -e 'exec "notepad.exe", "test.txt"'
-e:1:in `exec': No such file or directory - notepad.exe (Errno::ENOENT)
        from -e:1
C:\Workspace\ruby-1.8.6-p230\win32>ruby -e 'exec "notepad", "test.txt"'
C:\Workspace\ruby-1.8.6-p230\win32>ruby -e 'exec "notepad.exe"'


More information about the Rubyinstaller-devel mailing list