Moving onto exit codes, quoting subshells, and code cleanup