Why does 2>&1 need to come before a | (pipe) but after a "> myfile" (redirect to file)? Why does 2>&1 need to come before a | (pipe) but after a "> myfile" (redirect to file)? shell shell