Debugging in Bash 101: don’t use echo or printf directly… unless you want to break your returns 🙃
Discussion
debugging bash is not fun, but that's why you should keep bash scripts small enough that they fit in your tiny human brain that only holds very little context and you can debug them in your brain.