From: ts Date: 2003-03-20T03:05:15+09:00 Subject: Re: Mystery with ARGF >>>>> "G" == Gour writes: G> instead of "test.rb", I get "-" (minus sign). Well, this is changed in 1.8 pigeon% cat test.rb p ARGF pigeon% pigeon% ruby -v test.rb test.rb test1.rb ruby 1.8.0 (2003-03-03) [i686-linux] test.rb pigeon% with 1.6, it was initialized to "-" and set to the right value after an access pigeon% cat test.rb p ARGF ARGF.gets p ARGF pigeon% pigeon% /usr/bin/ruby -v test.rb test.rb test1.rb ruby 1.6.8 (2002-12-24) [i686-linux] - test.rb pigeon% G> Can somebody explain me why G> the usage of ARGF does not work ex expected (to give command line G> argument back)? ARGF give you the input stream read by the program ARGF#to_s is the same than ARGF#filename and give the name of the argument that ruby actually read Guy Decoux