> $ command 2>&1 >file > $ command >file 2>&1 > > These are not equivalent using our 4.2bsd Bourne shell. They're not supposed to be. The redirections are performed in the order given.