read -n is bash-specific