On Tue, Jul 30, 2019 at 10:35 AM Morgan McClure <mcclure.mor...@gmail.com> wrote: (...) > ./a.out foo > /dev/null 2&>1; echo $? > returns 3 NOT as expected
Are you 100% certain the `2&>1` redirection means what you think it means? (hint: I recommend reading the "Redirecting Standard Output and Standard Error" section of the bash manual, check if the leading `2` is valid there).