Let\'s say I have a script like the following:
useless.sh
echo \"This Is Error\" 1>&2 echo \"This Is Output\"
And I have an
$ b=$( ( a=$( (echo stdout;echo stderr >&2) ) ) 2>&1 ) $ echo "a=>$a b=>$b" a=>stdout b=>stderr