Check output unit in 'write' statements
We use the close(6); open(unit=6,...)
idiom to consolidate the output, but there are still quite a number of instances where we use the write(*,
form. In particular, in the section which writes the values of the environment variables in the header (routine process_env_var
in Src/version-info-template.inc
. Note also that the call to this routine might take place before the output redirection.
We need to be more consistent to guard against the disappearance of output from the output file in case of shell redirection.