Hello, 
  I have two scripts, the first one starts the second after his end.
  I read the arguments with the following approach on both scripts:
 
args: any [
     system/options/args
     to-block system/script/args
]
 
Lets do an example:
 
First script: first_script.r
 
Rebol []
args: any [
     system/options/args
     to-block system/script/args
]
 
print ["Script name: " first args]
 
args: copy []
do/args %second_script.r ["Second Script"]
---------
 
Second script: second_script.r
 
Rebol []
args: any [
     system/options/args
     to-block system/script/args
]
 
print ["Script name: " first args]
--------
Execute the first script with
 
rebol.exe c:/First_script.r "First Script"
 
The output should be
 
First Script
Second Script
 
Instead it is 
 
First Script
First Script
 
The argumens for the second script are those of first script
 
I have checked and:
 
probe system/options/args returns the values of the first one
probe system/script/args returns the value of the second 
 
As the second script could be executed either alone or started from the
first one, how could I change the argument approach ?
 
Giuseppe Chillemi
 


-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to