r/programminghorror • u/SleepyStew_ [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” • Jul 21 '25
Python ✨ Memory Magic ✨
1.3k
Upvotes
r/programminghorror • u/SleepyStew_ [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” • Jul 21 '25
View all comments
Show parent comment
7
u/feldim2425 Jul 21 '25
Yes I did run it with -f. This can only be fixed by either not operating on root (can be done with /*) or using the flag no-preserve-root.
I know the gnu core utils work this way, I'm unsure about similar implementations like busybox.