title: Strace with redirection
body: <p>How can I use strace to include output redirection (>), for example:</p>
  
  <pre><code>strace echo Hello &gt; /tmp/file
  </code></pre>
  
  <p>The output produced is only taking into account <code>echo hello</code> but not <code>&gt; /tmp/file</code></p>
  
  <p>I have also tried: </p>
  
  <pre><code>alice@vm:~$ strace -e trace=open,close,read,write echo Hello &gt; /tmp/file
  
  close(3)                                = 0
  read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0&gt;\0\1\0\0\0\260\34\2\0\0\0\0\0"..., 832) = 832
  close(3)                                = 0
  close(3)                                = 0
  write(1, "Hello\n", 6)                  = 6
  close(1)                                = 0
  close(2)                                = 0
  +++ exited with 0 +++
  </code></pre>
  
  <p>It shows that it is writing to stdout (file descriptor 1), but no where shows that it is redirecting to /tmp/file.</p>