From: Brian Candler Date: 2009-05-17T19:48:21+09:00 Subject: Re: $0 is truncated Nobuyoshi Nakada wrote: > Hi, > > At Sun, 17 May 2009 05:36:39 +0900, > Brian Candler wrote in [ruby-talk:336729]: >> I don't mind whether $0 is frozen. Actually, I wrote $0 = ... >> originally, and only changed it to $0.replace(...) as a workaround. > > You can find a hint in ext/extmk.rb. > > $progname = $0 > alias $PROGRAM_NAME $0 > alias $0 $progname > > trace_var(:$0) {|val| $PROGRAM_NAME = val} # update for ps Wow, that's a trick I wouldn't have thought of in a hundred years :-) Thank you. -- Posted via http://www.ruby-forum.com/.