Bash is not exactly a language without traps; preventing weird behaviors as much as possible should be one of our priority. Unit tests can help us in that regard.
Files: https://github.com/Phantas0s/mouseless-dev-youtube/blob/master/bash_best_practice/backup_04
shunit2: https://github.com/kward/shunit2
I'm using Neovim with shellcheck for static analysis. For snippets, ultisnips is my friend.
📙 Building Your Mouseless Development Environment: https://themouseless.dev
📑 Learning to Play Vim: https://themouseless.dev/vim
💎 Increase your value as a developer: https://thevaluable.dev
🐙 Github: https://github.com/Phantas0s
🍒 Support the channel: https://github.com/sponsors/Phantas0s