you are viewing a single comment's thread
view the rest of the comments
[–] 9 points 4 months ago (1 child)

set -u is your friend. Unless you're running that command interactively, in which case it just exits the shell without giving any warning at all. Oh, the joys of shells written to be compatible with scripts created 20 years ago...

  • source
  • parent
  • hideshow 1 child comment