How can TCC make an output as a part of command string

Nov 8, 2015
25
1
How can TCC make an output as a part of command/expression string similar to Bash ' $() ' command feature ?
 
Aug 23, 2010
396
5
In reality, $(…) captures entire output, but if you assign it in string context, only first line is available.
However, if used in list context, you can read all lines one by one.
Code:
for f in $( printf "%d\\n" 1 2 3 ); do echo "$f"; done