Pipe: How the System Call That Ties Unix Together Came About (thenewstack.io) 18 points by zaat 6y ago ↗ HN
[–] ktpsns 6y ago ↗ tl,dr; Ken Thompson invented them overnight in 1973 and everybody was happy afterwards. An original journal article is linked (http://emulator.pdp-11.org.ru/misc/1978.07_-_Bell_System_Tec...) which shows an example of pipes at page 25. [–] yesenadam 6y ago ↗ Funny, I thought McIlroy invented them, in 1964...and the article confirms that.
[–] yesenadam 6y ago ↗ Funny, I thought McIlroy invented them, in 1964...and the article confirms that.
[–] masonic 6y ago ↗ The author keeps writing "system call" when he means shell directive for assigning stdout/stdin. [–] zaat 6y ago ↗ It is a system call and not a shell directive: https://en.wikipedia.org/wiki/Anonymous_pipe#UnixAlso, man pipe. [–] masonic 6y ago ↗ The 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 6y ago ↗ After digging into it I came with this, which seems worth a submission on its own: https://brandonwamboldt.ca/how-linux-pipes-work-under-the-ho...Basically, the shell is using the pipe system call under the hood.
[–] zaat 6y ago ↗ It is a system call and not a shell directive: https://en.wikipedia.org/wiki/Anonymous_pipe#UnixAlso, man pipe. [–] masonic 6y ago ↗ The 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 6y ago ↗ After digging into it I came with this, which seems worth a submission on its own: https://brandonwamboldt.ca/how-linux-pipes-work-under-the-ho...Basically, the shell is using the pipe system call under the hood.
[–] masonic 6y ago ↗ The 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 6y ago ↗ After digging into it I came with this, which seems worth a submission on its own: https://brandonwamboldt.ca/how-linux-pipes-work-under-the-ho...Basically, the shell is using the pipe system call under the hood.
[–] zaat 6y ago ↗ After digging into it I came with this, which seems worth a submission on its own: https://brandonwamboldt.ca/how-linux-pipes-work-under-the-ho...Basically, the shell is using the pipe system call under the hood.
6 comments
[ 4.6 ms ] story [ 60.5 ms ] threadAlso, man pipe.
To wit: '... the symbol for pipes should instead be “|.” '
Basically, the shell is using the pipe system call under the hood.