so apparently $HOSTNAME is a bash-ism