From: Simon Strandgaard Date: 2004-04-17T21:29:09+09:00 Subject: [1.9-16apr] $0 is messed up I have just upgraded to 1.9 16-apr-2004 from 1.9 7-apr-2004. One of my testsuites is no longer working, which worked with the previous version. It shows up that $0 is cluttered up. I have placed a 'p' statement before the place where I read $0. It outputs "test_engine_builtin.rb\000test_rubicon(XTestEngineBuiltin)" The /\000.*$/ shouldn't be there. The code looks like def test_rubicon file_name = nil p $0 start = File.dirname($0) # BOOM null is not understood. for base in [".", "language"] In the changelog there seems to have been many changes recently to the dir handling. I wonder if that could be the reason? I tried to make a small piece of code which could reproduce the problem. But the problem seems only to be provoked when I do a test_all. server> ruby a.rb "a.rb" server> cat a.rb require 'b' class C include M end C.new.m server> cat b.rb module M def m p $0 end end server> Today is devoted to make a working proof of concept, which _can_ provoke the problem. Though I hope someone is able to recognize the problem before then. -- Simon Strandgaard