Strange error when running "ruby -version"

I used the latest windows installer from
http://rubyinstaller.rubyforge.org. I'm in windows XP. The error
looks like so:

C:\eng\other-sw\wtr\watir\unittests>ruby -version
ruby 1.8.2 (2004-07-29) [i386-mswin32]
-e:1: undefined local variable or method `rsion' for main:Object
(NameError)

Thanks.

C:\eng\other-sw\wtr\watir\unittests>ruby -version

This is equivalent to

   ruby -v -e 'rsion'

you want

   ruby --version

Guy Decoux

It should be: ruby -v (not ruby -version).

In your example, it sees "-v" and then "-e". The stuff after "-e"
gets executed, so it thinks you're trying to run a program with a
single method call to "rsion".

For an example, if you did: ruby -vegets
It would print the version and wait for you to hit enter on your keyboard.

Chad

ยทยทยท

On Thu, 14 Oct 2004 01:29:33 +0900, +jeff <zuk_ini@yahoo.com> wrote:

I used the latest windows installer from
http://rubyinstaller.rubyforge.org. I'm in windows XP. The error
looks like so:

C:\eng\other-sw\wtr\watir\unittests>ruby -version
ruby 1.8.2 (2004-07-29) [i386-mswin32]
-e:1: undefined local variable or method `rsion' for main:Object
(NameError)