summaryrefslogtreecommitdiffhomepage
path: root/tests/zash/alias-redefine.sh
blob: b5754359b64a1b2dc5490d70b21e9187f515c35c (plain)
1
2
3
4
5
6
7
8
9
# 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