I'm guessing the {} expansion results in something like

_() _  _()_&; _

but I would appreciate if a BASH guru chimed in and explained those characters chaining actions.

有帮助吗?

解决方案

It's the classic fork bomb: it defines a function named _ that calls itself twice (once in the foreground and once in the background) and calls it:

bomb(){ bomb | bomb &}; bomb

bomb() {
    bomb | bomb&
};

bomb

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top