From: 7stud -- Date: 2008-02-19T05:11:32+09:00 Subject: Re: Write a copy of the current script dkmd_nielsen wrote: > On Feb 18, 1:07 pm, Joel VanderWerf wrote: >> >> > returns "[AAN_StandardSetup.rb]" >> >> File.expand_path(__FILE__) >> File.expand_path($0) >> >> -- >> vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407 > > I tried that. I got the dataset name and that's it. Is it an O/S > thing? > Let's find out. mac osx 10.4.7: puts File.expand_path(__FILE__) puts File.expand_path($0) --output:-- /Users/me/2testing/dir1/r1test.rb /Users/me/2testing/dir1/r1test.rb -- Posted via http://www.ruby-forum.com/.