3 ms·
The author keeps writing "system call" when he means shell directive for assigning stdout/stdin.
by masonic 7y ago
The author keeps writing "system call" when he means shell directive for assigning stdout/stdin.
- zaat 7y agoIt is a system call and not a shell directive: https://en.wikipedia.org/wiki/Anonymous_pipe#Unix https://en.wikipedia.org/wiki/Anonymous_pipe#Unix Also, man pipe.
- masonic 7y agoThe use case in the article is piping stdout from one program to stdin of another in the shell, not using pipe(2). To wit: '... the symbol for pipes should instead be “|.” '
- zaat 7y agoAfter digging into it I came with this, which seems worth a submission on its own: https://brandonwamboldt.ca/how-linux-pipes-work-under-the-hood-1518/ https://brandonwamboldt.ca/how-linux-pipes-work-under-the-ho... Basically, the shell is using the pipe system call under the hood.