reddit discussion on replacing Python in 0install

Infiltrator Infiltrator at d.irc
Mon Jun 10 21:16:20 PDT 2013


On Tuesday, 11 June 2013 at 04:04:03 UTC, David Nadlinger wrote:
> On Tuesday, 11 June 2013 at 04:02:59 UTC, Andrei Alexandrescu 
> wrote:
>> The test program is flawed; writeln() writes to stdout, and 
>> the redirection is to stdin.
>
> Wouldn't stdin be fd 0?
>
> David

What David said.  Here's the same thing done to a cat (poor 
kitty):

$ cat 1</dev/null
test
cat: write error: Bad file descriptor


More information about the Digitalmars-d mailing list