Hi there,
ok, that is a strange one (unless i'm not doing something completely wrong...again...)
Start the little script below, all is fine, all is going well, clips are created.
/*
*/
SETCLIP('boot_scripts',1)
IF GETCLIP('boot_scripts')=1 THEN
SETCLIP('boot_scripts',2)
IF GETCLIP('boot_scripts')>1 THEN DO
val=GETCLIP('boot_scripts')
val=val-1
SETCLIP('boot_scripts',val)
END
now...start the same script, but with the below script called "1.rexx" in the same directory as the above script
/*
*/
SAY 'I have been summoned...'
This is what i get now (the clips are still created, of course, but the fact that another program is silently rexecuted is scary, especially as there is *no* command to tell it to).
17.Development:Scripting/.tests> rx exists.rexx
I have been summoned...
I have been summoned...
I have been summoned...
The *only* thing i could think of what AREXX is misinterpreting is the check result (which can be seen with "TS" active, see below).
It seems to interpret the result "1" as new command/program and starts it. Why is that?
Is it really meant to interpret results the way it does?
17.Development:Scripting/.tests> rx exists.rexx
2 *-* ;
3 *-* SETCLIP('boot_scripts',1);
>>> "boot_scripts"
>>> "1"
>>> "1"
2 *-* ;
3 *-* SAY 'I have been summoned...';
>>> "I have been summoned..."
I have been summoned...
>+>
>+>
4 *-* IF GETCLIP('boot_scripts')=1 THEN
>>> "boot_scripts"
>>> "1"
>+>
4 *-* ;
5 *-* SETCLIP('boot_scripts',2);
>>> "boot_scripts"
>>> "2"
>>> "1"
2 *-* ;
3 *-* SAY 'I have been summoned...';
>>> "I have been summoned..."
I have been summoned...
>+>
>+>
6 *-* IF GETCLIP('boot_scripts')>1 THEN
>>> "boot_scripts"
>>> "1"
>+>
6 *-* DO;
7 *-* val=GETCLIP('boot_scripts');
>>> "boot_scripts"
>>> "2"
>+>
8 *-* val=val-1;
>>> "1"
>+>
9 *-* SETCLIP('boot_scripts',val);
>>> "boot_scripts"
>>> "1"
>>> "1"
2 *-* ;
3 *-* SAY 'I have been summoned...';
>>> "I have been summoned..."
I have been summoned...
>+>
>+>
10 *-* END;
I don't think i have something special installed (not in terms of anything AREXX, at least)
Can someone confirm?
If not, there's once again something fishy in my setup.
Thank you