Mihai Don??u <mihai.dontu at gmail.com> wrote: > I don't think the kernel is the one that initializes the > 0, 1 and 2 file descriptors (stdin, stdout and stderr). Correct so far. > I think you have to open them yourself ... No, the shell does it. That's how it is able to set up pipes and redirection.