News for hackers. Stuff that matters.
Re:Results of the Grand C++ Error Explosion Competition by coldpie on Monday January 27, 2014 @09:17AM (#7130351)
Yeah, it's tricky. I remember it by breaking it into two pieces. "2>" means redirect stderr (file descriptor 2) to the following token. "&1" is the token for stdout (kinda like the address-of operator). So taken together, "2>&1" means redirect stderr to stdout.

Bash-only shortcuts like &> don't improve the situation :)

There are no comments on this comment yet.