The following code normally shows the output before the display:
PROGRAM-ID. 'test'.
DATA DIVISION.
WORKING-STORAGE SECTION.
77 SOME PIC X.
PROCEDURE DIVISION.
DISPLAY "Test: " WITH NO ADVANCING
ACCEPT SOME.
GOBACK.
But it doesn't do this if stdout is "captured":
exec 1> >(tee -a logfile) && exec 2> >(tee -a logfile >&2)
The issue exists since OC 0.33...
Commit: [r4792]
Commit: [r4925]
Discussion: NO ADVANCING Problem?
Discussion: NO ADVANCING Problem?
First patch:
... but it is may be more reasonable to always flush before accepting data and drop the additional variable and checks (the unnecessary flush could only be a minor issue if input does not come from the keyboard but a redirection).
Fixed with [r4088], will be merged to 3.1 soon with next merge.
Related
Commit: [r4088]