2013-08-06 52 views
0

我猜{}擴張導致類似BASH - _(){_ | _&}; _做?

_() _ _()_&; _ 

但如果BASH大師插話說,並解釋這些字符鏈接的行爲我將不勝感激。

+0

糟糕的是':(){:|:&};:'這個字體更不清晰。 – anishsane

回答

2

這是經典的fork炸彈:它定義了一個名爲_函數調用本身兩次(在前臺一次,一次在後臺),並調用它:

bomb(){ bomb | bomb &}; bomb 

bomb() { 
    bomb | bomb& 
}; 

bomb 

http://en.wikipedia.org/wiki/Fork_bomb