this post was submitted on 11 Nov 2025
590 points (97.6% liked)

Programmer Humor

28070 readers
1116 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] io@piefed.blahaj.zone 12 points 1 month ago* (last edited 1 month ago) (1 children)

not sure but for it to be a fork bomb you need something like & in ur pseudo code to go on to the next call

rn the first call of f within the loop never completes so the second doesn't happen. So this is "just" infinite recursion

pls don't scream at me should i be wrong.

edit: i meant "completes" not "compiles"

[โ€“] A_norny_mousse@feddit.org 2 points 1 month ago

No you're right.

I also attempted to write pseudocode; not sure bash will even do this without curly brackets.