logoalt Hacker News

kazinatoryesterday at 11:47 PM0 repliesview on HN

It's not inconsistent. The & is attached to the redirection operator, not to the 1 token. The file descriptor being redirected is also attached:

Thus you cannot write:

  2 > &1

You also cannot write

  2 >& 1
However you may write

  2>& 1
The n>& is one clump.