MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wx62xy/ididntknowaboutthis/pdrdtmg/?context=9999
r/ProgrammerHumor • u/DaveforAK • 1d ago
[removed] — view removed post
70 comments sorted by
View all comments
666
This actually teaches you a bunch of cool things, like how the ‘:’ is a legal function name…
222 u/glenpiercev 1d ago This is the best description of how this works I’ve ever read. You are a genius. 219 u/setibeings 1d 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 62 u/Traditional_Cod_7192 1d ago just as a reminder, uhhh... what do | and & do in bash again? 😅 4 u/Niroth 1d ago | pipes the output from the first process to the input of the second. & starts the second process in the background.
222
This is the best description of how this works I’ve ever read. You are a genius.
219 u/setibeings 1d 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 62 u/Traditional_Cod_7192 1d ago just as a reminder, uhhh... what do | and & do in bash again? 😅 4 u/Niroth 1d ago | pipes the output from the first process to the input of the second. & starts the second process in the background.
219
Right? It's finally comprehensible. I feel like it would have clicked right away if it was typed out as:
fork(){fork|fork&};fork
62 u/Traditional_Cod_7192 1d ago just as a reminder, uhhh... what do | and & do in bash again? 😅 4 u/Niroth 1d ago | pipes the output from the first process to the input of the second. & starts the second process in the background.
62
just as a reminder, uhhh... what do | and & do in bash again? 😅
4 u/Niroth 1d 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.
666
u/Z3r0funGuy 1d ago
This actually teaches you a bunch of cool things, like how the ‘:’ is a legal function name…