Shell Scripting - io redirecting - precedence of operators
问题 could somebody explain the difference between these two codes? bad_command 2>& >> file.out and bad_command >> file.out 2>& The manual said that these two codes are different,and first command will output nothing to file.out. So , here are my questions. 1/ what is the reason for that? 2/ Is there is a document which describes how operator precedence works in shell? how shell parses and made it's syntax tree. 3/ What is the correct syntax and order of it? --Thanks in advance-- 回答1: Both are