]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/builtins/unalias.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / builtins / unalias.0
1 # $FreeBSD: head/bin/sh/tests/builtins/unalias.0 149781 2005-09-04 11:59:59Z stefanf $
2 set -e
3
4 alias false=true
5 false
6 unalias false
7 false && exit 1
8 unalias false && exit 1
9
10 alias a1=foo a2=bar
11 unalias a1 a2
12 unalias a1 && exit 1
13 unalias a2 && exit 1
14 alias a2=bar
15 unalias a1 a2 && exit 1
16
17 alias a1=foo a2=bar
18 unalias -a
19 unalias a1 && exit 1
20 unalias a2 && exit 1
21 exit 0