public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31607]  New: CALL SYSTEM produces garbled output when writing to a buffered file
@ 2007-04-17 15:47 michael dot a dot richmond at nasa dot gov
  2007-04-17 19:00 ` [Bug libfortran/31607] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2007-04-17 15:47 UTC (permalink / raw)
  To: gcc-bugs

When I compile and run the following program:

"Hello world" precedes the directory listing if standard output goes to the
console
"Hello world" follows the directory listing if standard output is redirected to
a file

g95 avoids this inconsistency by flushing all buffers before executing "CALL
SYSTEM"

PROGRAM test_system
PRINT *, "Hello world"
CALL SYSTEM("ls")
END PROGRAM test_system


-- 
           Summary: CALL SYSTEM produces garbled output when writing to a
                    buffered file
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot a dot richmond at nasa dot gov


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31607


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-05-07 10:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-17 15:47 [Bug fortran/31607] New: CALL SYSTEM produces garbled output when writing to a buffered file michael dot a dot richmond at nasa dot gov
2007-04-17 19:00 ` [Bug libfortran/31607] " pinskia at gcc dot gnu dot org
2007-04-18  5:03 ` jvdelisle at gcc dot gnu dot org
2007-05-07  8:59 ` fxcoudert at gcc dot gnu dot org
2007-05-07 10:37 ` fxcoudert at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).