Based on the lack of comments to my last post I suspect most folks
missed the PS. So I thought I would expand on it a bit. In addition to
USING and STEM as keywords on the "address ... with" keyword one can
specify STREAM. This seems like the better choice for this request. So
if you are on Windows, you could code
address system 'some command' with error stream 'nul:'
to send the error output to the bit bucket. And if you are on Linux,
you could code
address system 'some command' with error stream '/dev/null'
to get the same effect. Now if you need a version that works on both
you need to add a line:
discard = (.rexxinfo~platform == 'LINUX')~?('/dev/null', 'nul:')
address system 'some command' with error stream (discard)
FWIW, YMMV.
Gil
On 12/3/2022 3:57 PM, Gilbert Barmwater wrote:
I was going to suggest
address system 'some command' with error using (.array~new)
but I like your answer better :-)
Gil
PS. This should also work
address system 'some command' with error stream 'nul:'
On 12/3/2022 2:39 PM, Erich Steinböck wrote:
errArr=.array~new
address system 'some command' with error using (errArr)
With our new twinkle smiley syntax, this of course can be shortened to
address '' 'some command' with error using ((,))
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel