MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/wdlvla/printhello_world/iik8ysd
r/ProgrammerHumor • u/a-slice-of-toast • Aug 01 '22
5.7k comments sorted by
View all comments
Show parent comments
10
To fix the formatting, add four spaces indent to every line and only quote the first one, like
fork() {
fork | fork & }; fork()
Also, you are correct, except the final line; bash doesn't use parentheses to call functions (they take arguments like commands)
1 u/OSSlayer2153 Aug 02 '22 Thanks, fixed it
1
Thanks, fixed it
10
u/TerrorBite Aug 01 '22
To fix the formatting, add four spaces indent to every line and only quote the first one, like
Also, you are correct, except the final line; bash doesn't use parentheses to call functions (they take arguments like commands)