Lurker News
Preferably an elegant snippet rather than an entire (well engineered) codebase.

Comments (380) 116 threads

Show all comments

Showing thread 20 of 116

blotter_paper4 replies#
Bash fork bomb (do not run, this will crash your system if it's not configured properly):

    :(){ :|:& };:
balp1 reply#
That got my unix account suspended at university....
danesparza#
:-) DOS'ing the system is frowned upon.
mongol1 reply#
What is a proper configuration to avoid that?
numlock862 replies#
I like the Windows one, too. It looks a lot simpler as well.

  %0|%0
dfox#
The conceptually same thing will also work on bourne shell. But as in the Windows case only as a script stored in file, the original with inline function definition is self-contained oneliner.
jolmg#
I don't know Windows scripting, but that looks like something you'd have to put in a file and call for it to work, instead of just running that on the command line. You can do the same thing on Unix systems. Writing

  $0|$0
on a file and running it should also work as a fork bomb.
sam_lowry_1 reply#
...and it smiles at you with its multiple faces
blotter_paper#
Faces I can interpret:

    :(   #sadface
    :()  #dopefish
    { :  #smiling one-toothed vampire
    { :| #blank stare with hat
    :|   #blank stare without hat
    |:   #other blank stare without hat
    |:&  #blank stare with bow
    };   #winking face with mustache
    };:  #winking four-eyed alien face with mustache
Only one of those was a smile, and you generally don't want a vampire smiling at you even if they're down a tooth! ;)