Error message for Shell class

I trid to test Shell class
in my system, windows 2000/ruby version win-1.7.3-8

this is my code: test1.rb

require 'shell’
sh = Shell.new
puts sh.pwd

But I got this error message

c:/ruby/lib/ruby/1.7/shell.rb:267: private method initialize' called for Shell: :CommandProcessor:Class (NoMethodError) from test1.rb:1:inrequire’
from test1.rb:1

shell.rb:267 is

CommandProcessor.initialize
CommandProcessor.run_config

What’s wrong?

thanks

s.moon

I tried this code using Ruby 1.8.0preview6 and it worked without any
trouble. The Ruby version you’re using, 1.7.3-8 is the prior
development release and was superseded by the 1.8 preview releases. The
last stable release was 1.6.8. I recommend getting the latest 1.8
preview build available for windows – I have heard that they exist.

Regards,

Mark

···

On Thursday, July 31, 2003, at 05:44 PM, s moon wrote:

I trid to test Shell class
in my system, windows 2000/ruby version win-1.7.3-8

this is my code: test1.rb

require ‘shell’
sh = Shell.new
puts sh.pwd

But I got this error message

c:/ruby/lib/ruby/1.7/shell.rb:267: private method initialize' called for Shell: :CommandProcessor:Class (NoMethodError) from test1.rb:1:in require’
from test1.rb:1

shell.rb:267 is

CommandProcessor.initialize
CommandProcessor.run_config
[snip]

Mark Wilson mwilson13@cox.net wrote in message news:D2D56D74-C3A7-11D7-A469-000393876156@cox.net

···

On Thursday, July 31, 2003, at 05:44 PM, s moon wrote:

I trid to test Shell class
in my system, windows 2000/ruby version win-1.7.3-8

this is my code: test1.rb

require ‘shell’
sh = Shell.new
puts sh.pwd

But I got this error message

c:/ruby/lib/ruby/1.7/shell.rb:267: private method initialize' called for Shell: :CommandProcessor:Class (NoMethodError) from test1.rb:1:in require’
from test1.rb:1

shell.rb:267 is

CommandProcessor.initialize
CommandProcessor.run_config
[snip]

I tried this code using Ruby 1.8.0preview6 and it worked without any
trouble. The Ruby version you’re using, 1.7.3-8 is the prior
development release and was superseded by the 1.8 preview releases. The
last stable release was 1.6.8. I recommend getting the latest 1.8
preview build available for windows – I have heard that they exist.

Regards,

Mark

thanks

I installed ruby 1.8.0-9 for my windows 2k
and it works correctly.

s moon