I have this:
exec > >( while read line; do echo " stdout: $line"; done )
exec 2> >( while read line; do echo " stderr: $line"; done )
echo "rolo"
>&2 echo "cholo"
if you run that script, it results in the following output:
stdout: rolo
stdout: stderr: cholo
how can I only send stderr to the second process substitution line? I don't get it.
I don't understand why this is happening:
stdout: rolo
stdout: stderr: cholo # what lol