@nitinkhanna An awesome linter that is way better at coping with word splitting and escaping than I am without its help: https://www.shellcheck.net/
One of the best things is that all its nits link to a page with actual explanation of the rule and when you might want to ignore the advice. So you can actually learn neat tricks as you go. :)