[Issue 2186] New: Out of order in stdout

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 30 16:08:07 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2186

           Summary: Out of order in stdout
           Product: D
           Version: 1.024
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: mihail.zenkov at gmail.com


Simple test case:

import std.stdio;
import std.process;

void main() {
        writefln("line1");
        system("echo line2");
        writefln("line3");
        system("echo line4");
}

# gdc test.d -o test
# ./test
line1
line2
line3
line4

All fine. But when i try redirect it to file or other process, i have:
# ./test | cat
line2
line4
line1
line3

gdc (GCC) 4.1.2 20070214 ( gdc 0.24, using dmd 1.024)


-- 



More information about the Digitalmars-d-bugs mailing list