Possible Duplicate:
The following bash command will spawn processes to kernel death. Can you explain the syntax?
:(){ :|:& };:
running this fork() unlimited .. Can one please explain this bash script ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You define a function called
:. Inside this function you call this function twice (:|:) and then you send that process to the background (&). Then you finally call it at the end.Because of the recursive nature, you’ll keep forking. Since there is no base case, the recursion will never end.