Ahh!  I'm using `[[`for forward compatibility with zsh, but this is backwards-incompatible with the POSIX shell, I need to use `[` here.  Thanks for catching this.