Redirecting stdout and stderr on the commandline allows one to redirect to the null device (on
Windows "nul", on Unix "/dev/null"), e.g.
someCommand >nul (Windows)
someCommand >/dev/null (Unix)
someCommand 2>nul (Windows)
someCommand 2>/dev/null (Unix)
There are redirections where the same need occurs with redirected command handlers. Therefore it
would be helpful, if .nil could be used as the null device on ooRexx redirected commands such that
ooRexx would ignore any output to that destination.
Something like
address system 'some command' with error using (.nil)
or
address system 'some command' with output using (.nil)
instead of
errArr=.array~new
address system 'some command' with error using (errArr)
where "errArr" never would get used in the Rexx program.
or
outArr=.array~new
address system 'some command' with output using (outArr)
where "outArr" never would get used in the Rexx program.
---rony
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel