Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What really put a stick in my spokes early on was not realising how whitespace acts differently to what I was used to. syntax error near unexpected token ? I was missing a space inside a [[ ]] - I started paying more close attention, this isn't javascript.


Use shellcheck as a linter for your scripts as that'll catch stuff like that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: