문제

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