xref: /freebsd/bin/sh/tests/builtins/unalias.0 (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
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