From: ale@... Date: 2001-09-03T15:33:48+09:00 Subject: [ruby-talk:20740] Re: eruby 0.9.6 doesn't work with ruby 1.7.1 On Sun, 2 Sep 2001, ts wrote: > >>>>> "A" == =?iso-8859-1?Q?Aleksi Niemel=E4?= writes: > > A> <% > A> require 'thread' > A> %> > > Which version of 1.7.1 ? I guess the issue is about the file handling differences between 1.7.1 and 1.6.4 as the following example hopefully shows. eruby-0.9.6-1.7]$ ./eruby --version eRuby version 0.9.6 ruby 1.7.1 (2001-08-29) [i686-linux] eruby-0.9.6-1.7]$ ./eruby -v <% require 'thread' %> --- generated code --- require 'thread' print "\n" ---------------------- eruby-0.9.6-1.7]$ ./eruby <% require 'thread' %> eruby-0.9.6-1.7]$ cat test.rhtml <% require 'thread' %> eruby-0.9.6-1.7]$ ./eruby test.rhtml ./eruby: [BUG] Segmentation fault ruby 1.7.1 (2001-08-29) [i686-linux] Aborted (core dumped) And the same with eruby built with Ruby 1.6: eruby-0.9.6-1.6]$ ./eruby --version eRuby version 0.9.6 ruby 1.6.4 (2001-06-04) [i686-linux] eruby-0.9.6-1.6]$ ./eruby -v <% require 'thread' %> --- generated code --- require 'thread' print "\n" ---------------------- eruby-0.9.6-1.6]$ ./eruby <% require 'thread' %> eruby-0.9.6-1.6]$ ./eruby ../eruby-0.9.6-1.7/test.rhtml Please note that the program entered from command line works, but when it's read from a file instead of STDIN it crashes. - Aleksi