logoalt Hacker News

nodesockettoday at 12:01 AM1 replyview on HN

I understand how this works, but wouldn’t a more clear syntax be:

command &2>&1

Since the use of & signifies a file descriptor. I get what this ACTUALLY does is run command in the background and then run 2 sending its stout to stdout. That’s completely not obvious by the way.


Replies

dheeratoday at 12:04 AM

even clearer syntax:

command &stderr>&stdout