News for hackers. Stuff that matters.
Re:Some advanced bash scripting by joatmon-snoo on Friday November 11, 2016 @11:19AM (#12932002)
Also, set -e is not a good flag to rely on, because it can really trip you up if you do anything at all that involves subshells, e.g.:

  set -e

  function foo {
      false
      echo foo
  }

  i=1
  while [[ i -le 20 ]]; do
      echo "$i $(foo)"
      i=$((i+1))
  done

There are no comments on this comment yet.