Hi Gil,

thank you for your ideas and suggestions!

On 04.12.2022 17:39, Gilbert Barmwater wrote:

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)

Rick's idea with a specific class that swallows lineout/say and use that via an environment symbol seems at the moment to be the best idea adding the proper semantics to a redirection to the null device in ooRexx terms, which also works on all operating system platforms (as it uses ooRexx means aboard).

And again, I really appreciate your efforts and ideas!

---rony
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to