It helps if you think of #bash not as a #programming language per se, but as a DSL for pain and suffering.