Skip to content

A Programmer Tattooed Some Code Onto His Arm, But There’s A Typo In It

January 25, 2014

A Programmer Tattooed Some Code Onto His Arm, But There’s A Typo In It – January 23, 2014 at 06:16PM

From the computer programming question-and-answer site Stack Overflow, we learn of the unfortunate story of a programmer who tattooed a "fork bomb," a type of self-replicating denial-of-service attack, on his forearm.

When he runs the code on a computer, however, it will occasionally return a syntax error and not run at all.

Here’s the tattooed arm in question: tattoo fork bombAnd for those seeking the technical explanation on why this code doesn’t run properly as written, here’s the top rated answer from Stack Overflow user Dmitri Chubarov:

There is a list of characters that separate tokens in BASH. These characters are called metacharactersand they are | & ; ( ) < > space and tab. On the other hand curly braces { and } are just ordinary characters that make up words.

Omitting the second space before } will do since & is a metacharacter. Therefore your tattoo should have at least one space character.

 :(){ :|:&};:

Join the conversation about this story »

    



from Tech http://ift.tt/LLRB01

Advertisements

From → feedly shared, Tech

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: