From: Marc R. <re...@gm...> - 2022-02-26 13:42:55
|
I just pushed a first draft of 'ooRexx-like' ADDRESS WITH implementation to the address-with branch. Currently it only supports stems, aka indexed strings. Input and output stems must be of Rexx type, where stem['0'] specifies the number of lines, and each stem['i'] specifies a line (with i from 1 through stem['0']). DiagAddress.nrx has some sample code, such as << istem='' ostem='' estem='' istem['0']=1 istem['1']='Hello world' address bash 'cat' with input stem istem istem['1']='echo Hello world' ostem['0']=0 address bash 'bash' with input stem istem output APPEND stem ostem error stem estem loop i=1 to ostem[0] say 'STDOUT: 'ostem[i] end loop i=1 to estem[0] say 'STDERR: 'estem[i] end >> IMHO, all ooRexx features are supported for stems, including 'permanent' redirection. Marc |