General

Profile

morris (M B)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

06/06/2009

03:06 AM Ruby Bug #1573: $0 behaves unexpectedly
=begin
> As always, there may be some use case I am missing?

my own use case is a bit hacky and has only syntax advantages:
i'm trying to intercept certain command line arguments, for example
in "ruby foo.rb -test" i would intercep...
morris (M B)
01:07 AM Ruby Bug #1573 (Closed): $0 behaves unexpectedly
=begin
consider two files, foo.rb and bar.rb, both simply contain: "p $0". i run "ruby -rbar.rb foo.rb".

using 1.8.6 and the same setup, the output is:

"foo.rb"
"foo.rb"

using 1.9.1p0 the output is:

"ruby"
"foo.r...
morris (M B)

Also available in: Atom