title: get return value of command run with script -c
body: <p>Is there a way to capture the return value of a program run using script -c?</p>
  
  <p>For example (in bash)</p>
  
  <pre><code>/bin/false; echo $? # outputs 1
  
  /usr/bin/script -c "/bin/false" /dev/null; echo $? 
  # outputs 0 as script exited successfully.
  </code></pre>
  
  <p>I need to get the return value from /bin/false instead of from /usr/bin/script.. is this possible? I'm using script to trick a program into thinking it is running in a real tty even though it isn't... Thanks!</p>