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