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

           Summary: std.stdio.write doesn't throw on failure
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: jesse.k.phillip...@gmail.com


--- Comment #0 from Jesse Phillips <jesse.k.phillip...@gmail.com> 2013-06-10 
19:48:24 PDT ---
Running a simple hello world program

import std.stdio;

void main() {
    writeln("Hello World");
    write("Hello World");
}

And executing where /dev/null is redirected as input to stdout (causing an
invalid fd)

$ ./hello 1</dev/null

http://forum.dlang.org/post/egmumvacbiflshtjo...@forum.dlang.org

Expected to see an exception thrown.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to