-v cancels out -e #215

Open
zenspider opened this Issue Jan 22, 2013 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

zenspider commented Jan 22, 2013

MRI:

% ruby -v -e 'p 0'
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
0
% ruby -e 'p 0' -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
0

maglev:

% ruby -v -e 'p 0'
maglev 1.1RC1 (ruby 1.8.7) (2012-12-06 rev 1.1RC1-29699)[Darwin x86_64]
0
% ruby -e 'p 0' -v
maglev 1.1RC1 (ruby 1.8.7) (2012-12-06 rev 1.1RC1-29699)[Darwin x86_64]
Contributor

zenspider commented Jan 22, 2013

I was about to close this thinking it was rbenv's shims, but I just tested against maglev-ruby directly and it still reproduces.

Commenting out line 236 of bin/maglev-ruby fixes the problem. But might cause others?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment