how THE FUCK do I capture exit code, stdout and strerr into 3 separate variables (actually 2 arrays for output streams and one variable for exit code) in one go without using temporary files in bash? why is it so simple to output different streams to files but requires mind boggling gymnastics to do it with variables?
this pathetic piece of shit is what I am using right now...
multiline_output.sh > /dev/null 2>&1
error_code=$?
mapfile -t my_beloved_array < <(multiline_output.sh )
mapfile -t my_beloved_array_errors < <(multiline_output.sh 2>&1)