E.g. I would like use subshell like $(date). Is it possible?
Solved
Are some limitations of using tee functions?
Best answer by Brendan Dalpe
Did a little digging on this. The native function does not spawn a shell, so subshells are not supported.
However, you can customize your tee function to start a new bash shell which will allow you to run a subshell command as you want.

The file is written as expected:

Note: You might not see file timestamp rotation because we're keeping that shell open unless it exits for some reason. Just keep that in mind as you're building out the pipeline.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
