_why,
Thank you very much.
I didn't fully understand the difference between $0/$PROGRAM_NAME and
ARGV[0].
It's my fault. I use $0 or $PROGRAM_NAME.
Thanks again,
Satoshi
On Sat, Dec 6, 2008 at 6:55 AM, _why <[EMAIL PROTECTED]> wrote:
> On Sat, Dec 06, 2008 at 05:21:15AM +0900, Satoshi Asakawa wrote:
> > I found the following difference. I'm using Windows XP.
> >
> > # test.rb
> > Shoes.app do
> > para "file name: #{ARGV[0]}"
> > end
> >
> > With Shoes-0.r1091, output is:
> > file name: C:\rubyprograms\shoes\test\test.rb
> >
> > With Shoes-0.r1123, output is:
> > file name:
>
> Are you running like this?
>
> shoes C:\rubyprograms\shoes\test\test.rb
>
> If not, use $0 or $PROGRAM_NAME instead of ARGV[0].
>
> _why
>