title: how does `shopt -s lastpipe` affect bash script behavior?
body: <p>I am trying to make <a href="https://github.com/lolilolicon/FFcast" rel="noreferrer">ffcast</a> screen casting tool bash 4.1 backwards compatible.</p>
  
  <p>and in this <a href="https://github.com/lolilolicon/FFcast/blob/master/src/ffcast.bash#L26" rel="noreferrer">ffcast.bash</a> script, there is oneline </p>
  
  <pre><code>shopt -s extglob lastpipe
  </code></pre>
  
  <p>lastpipe option is only available after bash 4.3, what can I do to emulate its effect?</p>