[REBOL] Re: Access to script arguments
From: ammonjohnson:yaho:o at: 24-Nov-2001 11:13
better watch the space after 'do,
>> do /args %script.r "testarg"
== "testarg"
this code DOes "/args" which results:
>> do /args
== /args
it then evaluates each of the expressions:
>> %script.r
== %script.r
>> "testargs"
== "testargs"
None of the expressions return an error so the commandline simply returns
the last value. The correct code has no space between "do" & "/args"
>> do/args %script.r "testarg"
** Access Error: Cannot open /C/script.r
** Near: do/args %script.r "testarg"
as you can see, %script.r doesn't exist in the current directory on my
machine, but given a machine where it does exist you should be set!
Enjoy!!
Ammon