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