DEV Community

Discussion on: Stupid Bash! Stupid me! Comparing Strings in Bash

Collapse
 
moopet profile image
Ben Sinclair

I heartily recommend running shellcheck to avoid this sort of thing. You can integrate it with your editor or IDE as you would any other language and it'll tell you what's wrong in excruciating detail:

shellcheck output of original source code, indicating missing spaces in the test condition

Collapse
 
dvddpl profile image
Davide de Paolis

Awesome 🀩. Will definitely check it out. Thanks!!