this post was submitted on 05 Apr 2025
315 points (99.4% liked)

Programmer Humor

34832 readers
646 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
315
submitted 2 days ago* (last edited 2 days ago) by [email protected] to c/[email protected]
 
catch {
    exec('rm -rf /*')
}
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 1 day ago (1 children)

Or, you know, run it in a chroot.

[โ€“] [email protected] 3 points 12 hours ago

Hey, if Valve gets to wipe home directories in released software, developers should get the chance to do it in their test code.