Com base na resposta de Stéphane Chazelas , eu criei:
# Expand an alias as text - https://unix.stackexchange.com/q/463327/143394
function expand_alias {
if [[ -n $ZSH_VERSION ]]; then
# shellcheck disable=2154 # aliases referenced but not assigned
printf '%s\n' "${aliases[$1]}"
else # bash
printf '%s\n' "${BASH_ALIASES[$1]}"
fi
}
(com o bash 4.0 ou mais recente).