Amos wrote:
> I've had a trivial expect script in use for a while now, but with
> 1.8.5-p2 it no longer functions. In fact, the example expect script
> doesn't work either. Both produce the same exception:
> 
> $ /usr/local/bin/ruby expect_sample.rb
> /usr/local/lib/ruby/1.8/expect.rb:17:in `expect': undefined method
> `chr' for nil:NilClass (NoMethodError)
>         from expect_sample.rb:18
>         from expect_sample.rb:13:in `spawn'
>         from expect_sample.rb:13
> 
> The only 'chr' I see is the following in expect.rb:
> 
>     while true
>       if IO.select([self],nil,nil,timeout).nil? then
>         result = nil
>         break
>       end
>       c = getc.chr
>       buf << c
> 
> Suggestions?

Hi,
I came up with the same problem, except mine was running 1.8.4 on 
Solaris - but was working running on linux.

If someone has suggestions, please let us know.


-- 
Posted via http://www.ruby-forum.com/.