Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
76 user(s) are online (57 user(s) are browsing Forums)

Members: 0
Guests: 76

more...

Headlines

Report message:*
 

Re: The AREXX thread (Questions, hints, ideas)

Subject: Re: The AREXX thread (Questions, hints, ideas)
by Raziel on 2021/9/22 12:49:57

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/.testsrx 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/.testsrx exists.rexx 
  2 
*-* ;
  
*-* SETCLIP('boot_scripts',1);
      >>> 
"boot_scripts"
      
>>> "1"
      
>>> "1"
  
*-* ;
  
*-* SAY 'I have been summoned...';
      >>> 
"I have been summoned..."
I have been summoned...
>+> 
>+> 
  
*-* IF GETCLIP('boot_scripts')=1 THEN
      
>>> "boot_scripts"
      
>>> "1"
>+> 
    
*-* ;
    
*-* SETCLIP('boot_scripts',2);
        >>> 
"boot_scripts"
        
>>> "2"
        
>>> "1"
  
*-* ;
  
*-* SAY 'I have been summoned...';
      >>> 
"I have been summoned..."
I have been summoned...
>+> 
>+> 
  
*-* IF GETCLIP('boot_scripts')>1 THEN
      
>>> "boot_scripts"
      
>>> "1"
>+> 
    
*-*  DO;
      
*-* val=GETCLIP('boot_scripts');
          >>> 
"boot_scripts"
          
>>> "2"
>+> 
      
*-* val=val-1;
          >>> 
"1"
>+> 
      
*-* SETCLIP('boot_scripts',val);
          >>> 
"boot_scripts"
          
>>> "1"
          
>>> "1"
  
*-* ;
  
*-* 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

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project