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