# shellcheck disable=SC2016
# An alias that redefines or removes itself while its own text is being read:
# the parser owns a copy of the text, so this is ordinary command execution.
alias a='echo first; alias a="echo second"'
a
a
alias b='echo third; unalias b'
b
b