Torturing a ten-year old

I assume there is a near-infinite number of ways of making life hard for a decade-old laptop ā€“ one of them being

$ yes $(yes)

yes is a program that outputs a string indefinitely until the process is killed. If no parameters are given to the program, the output is “y” followed by a new line, repeated until killed.

What I in the spur of the moment did, just to see what would happen, was that I wanted to use the output of one yes command and use that as the parameter for another yes command to see if the output would grow exponentially. What I was too tired to realize was that even the first reiteration would be infinitely large. Oops! And the memory of the laptop was already filled up by Firefox.

Hard reboot!

Tags: ,

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: