source: MondoRescue/branches/2.2.9/mindi-busybox/shell/ash_test/ash-alias/alias.tests@ 3320

Last change on this file since 3320 was 3320, checked in by Bruno Cornec, 9 years ago
  • Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in the move to 3.0
  • Property svn:executable set to *
File size: 581 bytes
Line 
1# 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
Note: See TracBrowser for help on using the repository browser.