We are using a testing-script to test our fortran suite. With GCC 4.1.0 2005-08- 19 our script fails to log all output. Any output before the fortran program was run is missing from the redirected console (bash in our case).
The fortran program in question: PROGRAM HELLO DO 10, I=1,2 PRINT *,'Hello World' 10 CONTINUE STOP END Simple test script: #!/bin/sh -x #test-script echo '# START OF TESTS #' > /dev/tty echo '' /home/fortran/hellof90 echo '# END OF TESTS #' > /dev/tty run test script: ./tst.sh &> tstrap This causes the 'tstrap' file to only contain the output of the fortran program and 'end of tests'. -- Summary: [Regression] Printout resets console buffer Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: T dot Farago at lumc dot nl CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: ../gcc-4.1-20050819/configure -v --prefix=/usr/cross- tools/ --di GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23778