Bug #3358
closed-I switch fails to work on the trunk version
Description
=begin
The nightly snapshop version fails to generate rdoc with this error:
Generating RDoc documentation
.\ruby.exe -I./lib -I".ext/i386-mswin32_90" "./tool/runruby.rb" --extout
=".ext" -- "./bin/rdoc" --no-force-update --all --ri --op ".ext/rdoc" "."
NMAKE : fatal error U1077: '.\ruby.exe' : '0xc0000005'
Stop.
I found that ruby fails to run script if -I switch is provided.
On ruby 1.8.6
C:>ruby -I./ -ve 'p 1'
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]
1
C:>echo %ERRORLEVEL%
0
On ruby 1.9.3.dev
C:\work\snapshot>ruby -I./ -ve 'p 1'
ruby 1.9.3dev (2010-05-28 trunk 28045) [i386-mswin32_90]
C:\work\snapshot>echo %ERRORLEVEL%
-1073741819
C:\work\snapshot>ruby -ve 'p 1'
ruby 1.9.3dev (2010-05-28 trunk 28045) [i386-mswin32_90]
1
C:\work\snapshot>echo %ERRORLEVEL%
0
=end