xref: /freebsd/bin/sh/tests/builtins/unalias.0 (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1set -e
2
3alias false=true
4false
5unalias false
6false && exit 1
7unalias false && exit 1
8
9alias a1=foo a2=bar
10unalias a1 a2
11unalias a1 && exit 1
12unalias a2 && exit 1
13alias a2=bar
14unalias a1 a2 && exit 1
15
16alias a1=foo a2=bar
17unalias -a
18unalias a1 && exit 1
19unalias a2 && exit 1
20exit 0
21