My mind boggles at how much of the bash man page must be studied to understand why your command line works the way it does, executing the double-paren'd chunk before truncating the output file. And I feel sorry for anyone who looks at that line, concludes that it's a simple and normal thing to use the same file as input and redirection output in a single command, and forgets about the parens.
In reply to Re^2: the manuals fail me
by graff
in thread the manuals fail me
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |