Consider this simple test case entered into test.rexx:
Then from a command line, type
rexx test > out1.txt
out1 is just as expected, the numbers 1-4, one per line. However, if you take that file and Rexxwrap it:
and use just the defaults (no encryption etc.) to get test.exe. Then when you run
test.exe > out2.txt
and run a hex editor on out2.txt, you will see, e.g., "31 0D 0D 0A 32 0D 0D 0A"... !
Somehow the Rexxwrap process adds an extra carriage return ('0d'x) to the output! Moreover, if you edit the original test. rexx file to look like this:
LF = '0a'x
and then you built it into an exe using rexxwrapper, the resulting output file will look like this: "31 0D 0A 32 0D 0A"... ! Vewwwy mysterious.
Finally, I repeated these tests on Linux with the same versions of Regina-rexx and Rexxwrapper. In both cases,
rexx test.rexx > out1.txt
./test > out2.rexx # after building in Rexxwrapper
the output is the same and correct: