------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-05-22 22:09 ------- As a reply to comment 2: this is indeed a problem of mixing unix-style and C-style I/O, but not mmap ones (this was a different PR, fixed some time ago now: mmap is not used on standard input, output and error).
Consider the following (program given in bug-report compiled as indicated): $ ./a.out foo bar $ ./a.out | cat $ GFORTRAN_STDOUT_UNIT=-1 ./a.out | cat foo bar $ echo `./a.out` $ echo `GFORTRAN_STDOUT_UNIT=-1 ./a.out` foo bar baz -- What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu dot | |org Last reconfirmed|2005-02-27 18:18:51 |2005-05-22 22:09:34 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20179