logoalt Hacker News

lifthrasiirtoday at 2:33 AM1 replyview on HN

Probably, but knowing that redirection operators can be freely moved within normal arguments [EDIT: thank ButlerianJihad for pursuing me to make this more accurate] is useful.


Replies

ButlerianJihadtoday at 2:42 AM

They are actually not “order-independent”, and their L-R parsing/processing is why constructs such as

  cat file > /dev/null 2>&1
work as intended.
show 1 reply