1. 11 Feb, 2016 1 commit
    • anonym's avatar
      Avoid set -u issue when testing if variable is set or not. · 364a3c8d
      anonym authored
      Whenever there's a risk that we will reference a shell variable in a
      script run with `set -u` (including libraries that we sources from
      such scripts) we must reference the variable in a way so it gets a
      default value, i.e. `${VAR:-}` to give it the empty string as the
      default (which is what generally makes sense).
      
      In particular, it's quite clear that in all cases where we do
      something like `[ -n "${VAR}" ]` or `[ -z "${VAR}" ]`, where an
      expected value is the empty string, which could mean that the variable
      is not initialized, we should give such a default (as the empty
      string).
      364a3c8d
  2. 27 Nov, 2014 1 commit
  3. 06 Oct, 2014 1 commit
  4. 06 Mar, 2014 2 commits
  5. 05 Mar, 2014 1 commit
  6. 04 Mar, 2014 1 commit
  7. 07 Jan, 2014 2 commits
  8. 20 Apr, 2013 1 commit
  9. 30 Nov, 2012 4 commits