Before bash 4 we can't use ^^ or ,, to transform to upper or lowercase.
Use tr instead.
# Set GIT_AUTHOR_NAME etc from dotfiles in the profile.
function git_commit_tree() {
local WHO=$1; shift
- local who=${WHO,,}
+ local who="$(echo $WHO | tr '[[:upper:]]' '[[:lower:]]')"
local WHAT=
for WHAT in EMAIL NAME; do
- local what=${WHAT,,}
+ local what="$(echo $WHAT | tr '[[:upper:]]' '[[:lower:]]')"
local where=
# Look in $HOME then $PROFILE_HOME.