From: Simon Strandgaard Date: 2004-04-18T00:54:09+09:00 Subject: Re: [1.9-16apr] $0 is messed up On Sat, 17 Apr 2004 16:10:19 +0200, Simon Strandgaard wrote: > Found some explanation: > > http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/lib/test/unit/ui/console/testrunner.rb > > see revision 1.6: > * lib/test/unit/ui/console/testrunner.rb (test_started): show test > name via $0. > > > ATT: Nobu > I think its a bad idea to use global variables for this. > Wouldn't it be better to have a instance variable with such info. > For instance '@test_name'.. would be lot better. I mailed Nathaniel Talbott about it: NT> Well, I think I understand why it was changed (although I didn't make� NT> the change)... if you set the $0 variable, then ps, top, etc., will� NT> display that value when you do a process listing. I know I've found� NT> that to be handy for some processes myself. So it seems the serious� NT> issue might be the weird output you're ending up with, as opposed to� NT> setting $0. But Nobu's really the one to make the final call on it, as� NT> he put that change in. Now it makes much more sense.. However I still wish that $0 would be untouched by Test::Unit. -- Simon Strandgaard