Bug #3358: -I switch fails to work on the trunk version
http://redmine.ruby-lang.org/issues/show/3358

Author: Heesob Park
Status: Open, Priority: Normal
Category: core, Target version: 1.9.x
ruby -v: ruby 1.9.3dev (2010-05-28 trunk 28045) [i386-mswin32_90]

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


----------------------------------------
http://redmine.ruby-lang.org