r/ProgrammerHumor • • Aug 01 '22

>>>print(“Hello, World!”)

Post image
60.8k Upvotes

5.7k comments sorted by

View all comments

Show parent comments

10

u/TerrorBite Aug 01 '22

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