Is this even possible?
I'd like to run a command but capture its stdout and stderr as separate variables. Currently I'm using
set -l var (cmd), which leaves stderr untouched. I can do
set -l var (cmd ^&1) which will merge stdout and stderr into var, but then I can't easily separate them again.
Is there any way to get var and var_err to hold stdout and stderr from cmd?