In Mathematica, it is possible to reuse the output of the previous command by using %.
Is something similar possible for bash (or some other shell)?
For example,
Swap the stdout and stderr streams to log the entire stderr stream:
stdout
stderr
make 3>&2 2>&1 1>&3 3>&- | tee /dev/stderr > stderr.log