Output redirection behaviour
Jon Abbott (1421) 2651 posts |
What is the expected behaviour of the following:
I’d expect it to do nothing, but the redirection file gets created. The documentation / PRM1-957 does not mention redirection is non-conditional, only that it’s stripped before the line is interpreted. Is it possible to use redirection conditionally in a script? |
Stuart Swales (8827) 1357 posts |
I would expect it to create the redirection file as OS_CLI redirection applies to the command (IF, here) |
Jon Abbott (1421) 2651 posts |
I’ve updated the documentation to state its non-conditional, along with an example of what happens when used with IF / ELSE |