I want to redirect both stdout and stderr of a process to a single file. How do I do that in Bash?
In situations when you consider using things like exec 2>&1 I find easier to read if possible rewriting code using bash functions like this:
exec 2>&1
function myfunc(){ [...] } myfunc &>mylog.log