When Linux I/O Is Decided — Execution-Time Model of stdin, stdout, pipe, and redirection
Linux I/O is not a flow but a pre-execution state.
This article explains how stdin, stdout, pipes, and redirection are actually wired before a process starts.