Your reasoning is correct up to the very last bit. The filters are applied LIFO, as your diagram correctly indicates. The first filter in this chain (which is the last one added) will spit out a line prepended by 'baz: '; the next filter will prepend 'bar: ' to the output of the previous filter, i.e. a line already beginning with 'baz: ', resulting in a line prepended by 'bar: baz: '. Similarly, the output of the last filter met (the first one invoked) is prepended by 'foo: ' to the output of the previous filter, resulting in a line beginning with 'foo: bar: baz: '.
the lowliest monk
In reply to Re: Understanding forking open
by tlm
in thread Understanding forking open
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |