On 6/10/2013 4:26 PM, Jesse Phillips wrote:
On Monday, 10 June 2013 at 22:06:29 UTC, Anthony Goins wrote:
If you want to know what happens on my linux box
1 module hellotest;
2
3 import std.stdio;
4
5 void main()
6 {
7 writeln("hello world.");
8 }
anthony@LinuxGen12:~/projects/temp$ ./hellotest
hello world.
anthony@LinuxGen12:~/projects/temp$ ./hellotest 1</dev/null; echo status : $?
status : 0
anthony@LinuxGen12:~/projects/temp$
So D fails the test too. But now that I think about it, isn't /dev/null where
you write data to a black hole... maybe he meant /dev/zero
Yeah, I thought /dev/null was a bit bucket. D shouldn't fail on writing to that,
and didn't.