[Rubyinstaller-devel] exec bug in RC2

Luis Lavena luislavena at gmail.com
Sat Dec 20 13:27:44 EST 2008


On Fri, Dec 19, 2008 at 1:09 AM, Allen Hewes <allen at decisiv.net> wrote:
> 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\bin\ruby.EXE
>
> 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.EXE
>
> 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"'
>

Thank you Allen.

Yes, these changes were introduced in ruby itself, is not
RubyInstaller (One-Click).

Since we updated the reference Ruby to p287, now we are seeing those.

Changes has been integrated in ruby-core for 1.9 and I believe soon
these will be merged in 1.8 branch.

-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry


More information about the Rubyinstaller-devel mailing list