The following address-with program using arrays hangs on input using an input 
array:

    inArray=("first input.", "| second input. ", "| third input. ")   -- input 
data
    outArray=.array~new
    errArray=.array~new
    say "inArray~items="inArray~items "outArray~items:" outArray~items 
"errArray~items:" errArray~items
    say "about to run address-with..."
    "rexx testAbit.rex" with input using (inArray) output using (outArray) 
error using (errArray)
    say "address-with done."
    say "inArray~items="inArray~items "outArray~items:" outArray~items 
"errArray~items:" errArray~items

Here is the Rexx program serving as teh command "testAbit.rex":

    call lineout "stderr:", "0) testAbit.rex, START at:" pp(.dateTime~new)
    parse source . . fullName
    fileName=filespec('name',fullName)

    signal on notready
    sleepTime=.25

    do i=1
       parse linein val
       str="1) testAbit.rex: val~length="val~length "at" pp(.dateTime~new)
       call lineout "stderr:", "stderr-"str
       say                     "say   -"str
       say "say   <-".dateTime~new "|" fileName": 'parse linein val':" 
pp(val)"->"
    end

    notready:
    call lineout "stderr:", "9) testAbit.rex, END   at:" pp(.dateTime~new)

    ::routine pp
      return "["arg(1)"]"

While hanging, pressing the return key will supply an empty string and the 
output goes to the screen
for both the statements either using 'call leneout "stderr:",..." or "say..." 
(not sure whether the
output and error redirection to the supplied array objects gets honored out in 
this case).

Shall I open a proper bug report or is it ok to post such short programs 
relating to sandbox
observations here on the developer list?

---rony




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to