blob: 8d07b0b282e02bd63ab7256f3b12e2ea19b814a3 [file] [log] [blame]
Denis Vlasenko1c660b42007-03-05 00:27:50 +00001# place holder for future alias testing
2#ash# shopt -s expand_aliases
3
4# alias/unalias tests originally in builtins.tests
5
6unalias -a
7# this should return success, according to POSIX.2
8alias
9echo alias: $?
10alias foo=bar
11unalias foo
12# this had better return success, according to POSIX.2
13alias
14echo alias: $?
15
16# bug in all versions through bash-2.05b
17
18unalias qfoo qbar qbaz quux 2>/dev/null
19
20alias qfoo=qbar
21alias qbar=qbaz
22alias qbaz=quux
23alias quux=qfoo
24
25qfoo
26
27unalias qfoo qbar qbaz quux
28
29unalias -a
30
31alias foo='echo '
32alias bar=baz
33alias baz=quux
34
35foo bar
36
37unalias foo bar baz