Just a heads-up that the other fix here would have been to change to single square brackets.  I'm happy with switching to bash, though.