Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1189 Regression: SysFileTree() does not accept compound symbols anymore

4.1.3
wont-fix
nobody
None
none
1
2013-07-14
2013-07-14
No

Starting with ooRexx 4.1.3 the external function SysFileTree() does not accept compound symbols anymore.

The following program has been running flawlessly with all prior versions of ooRexx:

 pattern="."

 say "using 'cmd.' as stem for SysFileTree():"
 call SysFileTree pattern, "cmd.", "FO" /* query for the jars we need */
 do i=1 to cmd.0
    say "cmd."i "->" cmd.i
 end
 say "---"

 say "now using 'cmd.eTest.' as stem for SysFileTree(), fails on 4.1.3:"
 call SysFileTree pattern, "cmd.eTest.", "FO" /* query for the jars we need */

 do i=1 to cmd.eTest.0
    say "cmd.eTest."i "->" cmd.eTest.i
 end

running with ooRexx 4.1.2 or earlier:

 F:\test\orx\rgf\413>testStem.rex
 using 'cmd.' as stem for SysFileTree():
 cmd.1 -> F:\test\orx\rgf\413\testStem.rex
 ---
 now using 'cmd.eTest.' as stem for SysFileTree(), fails on 4.1.3:
 cmd.eTest.1 -> F:\test\orx\rgf\413\testStem.rex

running with ooRexx 4.1.3:

 F:\test\orx\rgf\413>testStem.rex
 using 'cmd.' as stem for SysFileTree():
 cmd.1 -> F:\test\orx\rgf\413\testStem.rex
 ---
 now using 'cmd.eTest.' as stem for SysFileTree(), fails on 4.1.3:
     11 *-* call SysFileTree pattern, "cmd.eTest.", "FO" /* query for the jars we need */
 Error 40:  Incorrect call to routine
 Error 40.919:  Argument 2 must have a stem object or stem name value; found "cmd.eTest."

Discussion

  • Rick McGuire
    Rick McGuire
    2013-07-14

    This was never intended to work this way and only did so by chance. The documentation clearly indicates that the argument is a STEM, which a compound symbol does not qualify for. This will not be fixed.

     


Anonymous


Cancel   Add attachments