in reply to Re^2: Capture Exit Code Using Pipe & Tee
in thread Capture Exit Code Using Pipe & Tee

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.