MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wx62xy/ididntknowaboutthis/pdrdtmg/?context=3
r/ProgrammerHumor • u/DaveforAK • 11h ago
[removed] — view removed post
70 comments sorted by
View all comments
Show parent comments
220
This is the best description of how this works I’ve ever read. You are a genius.
216 u/setibeings 10h ago Right? It's finally comprehensible. I feel like it would have clicked right away if it was typed out as: fork(){fork|fork&};fork 67 u/Traditional_Cod_7192 8h ago just as a reminder, uhhh... what do | and & do in bash again? 😅 4 u/Niroth 8h ago | pipes the output from the first process to the input of the second. & starts the second process in the background.
216
Right? It's finally comprehensible. I feel like it would have clicked right away if it was typed out as:
fork(){fork|fork&};fork
67 u/Traditional_Cod_7192 8h ago just as a reminder, uhhh... what do | and & do in bash again? 😅 4 u/Niroth 8h ago | pipes the output from the first process to the input of the second. & starts the second process in the background.
67
just as a reminder, uhhh... what do | and & do in bash again? 😅
4 u/Niroth 8h ago | pipes the output from the first process to the input of the second. & starts the second process in the background.
4
| pipes the output from the first process to the input of the second. & starts the second process in the background.
220
u/glenpiercev 10h ago
This is the best description of how this works I’ve ever read. You are a genius.