No, it doesn't necessarily get it from the tee command, and it always gets it from the shell when the it is called. I can think of three circumstances where it does not.
In reply to Re^3: Capture Exit Code Using Pipe & Tee
by ikegami
in thread Capture Exit Code Using Pipe & Tee
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |