[Rubyinstaller-devel] exec bug in RC2

Zakaria z4k4ri4 at gmail.com
Thu Dec 18 06:41:06 EST 2008


I'm testing the RC2 and find this bug while trying to run rails script/dbconsole

E:\>ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
E:\>ruby -e 'exec "notepad.exe", "test.txt"'
-e:1:in `exec': No such file or directory - notepad.exe (Errno::ENOENT)
        from -e:1
E:\>ruby -e 'exec "notepad", "test.txt"'
E:\>ruby -e 'exec "notepad.exe"'

Note there is an error when I do exec 'notepad.exe', 'test.txt'

Compare with the ruby in InstantRails 2.0:

C:\rails2\rails_apps>ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
C:\rails2\rails_apps>ruby -e 'exec "notepad.exe", "test.txt"'
C:\rails2\rails_apps>ruby -e 'exec "notepad", "test.txt"'
C:\rails2\rails_apps>ruby -e 'exec "notepad.exe"'

There is no such error. A regression perhaps?


-- Zakaria
   z4k4ri4 at gmail.com             Yahoo!: z4k4ri4
   Mau invite gmail? japri aja.

More information about the Rubyinstaller-devel mailing list