Command not found when comparing string

I’m sure this has come up before, but — [ is actually a command. You need a space after the [ in order for the shell to find it.

Leave a Comment