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