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