Imported from ../bash-3.1.tar.gz.
[platform/upstream/bash.git] / tests / builtins.right
1 a
2 end-1
3 a
4 end-2
5 a:x
6 end-a
7 b:x
8 end-b
9 c:x
10 end-c
11 end-3
12 a:x
13 end
14 a
15 b
16 c
17 end-1
18 a
19 b
20 c
21 end-2
22 a:x
23 a:y
24 a:z
25 end-a
26 b:x
27 b:y
28 b:z
29 end-b
30 c:x
31 c:y
32 c:z
33 end-c
34 end-3
35 a:x
36 b:x
37 c:x
38 end
39 $BVAR
40 $BVAR
41 $BVAR
42 $BVAR
43 foo
44 bar
45 xxx
46 0022
47 u=rwx,g=rx,o=rx
48 0002
49 u=rwx,g=rwx,o=rx
50 umask 0002
51 umask -S u=rwx,g=rwx,o=rx
52 u=rwx,g=rwx,o=rwx
53 enable .
54 enable :
55 enable break
56 enable continue
57 enable eval
58 enable exec
59 enable exit
60 enable export
61 enable readonly
62 enable return
63 enable set
64 enable shift
65 enable source
66 enable times
67 enable trap
68 enable unset
69 enable .
70 enable :
71 enable break
72 enable continue
73 enable eval
74 enable exec
75 enable exit
76 enable export
77 enable readonly
78 enable return
79 enable set
80 enable shift
81 enable source
82 enable times
83 enable trap
84 enable unset
85 enable -n test worked
86 enable test worked
87 specialname
88 -specialname
89 FOO=BAR
90 FOO=BAR
91 hash: hash table empty
92 0
93 AVAR
94 foo
95 in source.sub2, calling return
96 5
97 a b c
98 a b c
99 x y z
100 a b c
101 a b c
102 m n o p
103 a b c
104 m n o p
105 /tmp/bash-dir-a
106 /tmp/bash-dir-a
107 /tmp/bash-dir-a
108 ./source5.sub: line 10: /tmp/source-notthere: No such file or directory
109 after bad source 1
110 ./source5.sub: line 17: /tmp/source-notthere: No such file or directory
111 AVAR
112 foo
113 foo
114 AVAR
115 foo
116 foo
117 AVAR
118 foo
119 declare -x foo=""
120 declare -x FOO="\$\$"
121 ./builtins.tests: line 207: declare: FOO: not found
122 declare -x FOO="\$\$"
123 ok
124 ok
125 ./builtins.tests: line 239: kill: 4096: invalid signal specification
126 1
127 a\n\n\nb
128 a
129
130
131 b
132 ./builtins.tests: line 248: exit: status: numeric argument required