]>
Commit | Line | Data |
---|---|---|
d166f048 JA |
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 | |
f73dda09 | 46 | 0022 |
d166f048 | 47 | u=rwx,g=rx,o=rx |
f73dda09 | 48 | 0002 |
d166f048 | 49 | u=rwx,g=rwx,o=rx |
f73dda09 | 50 | umask 0002 |
cce855bc | 51 | umask -S u=rwx,g=rwx,o=rx |
d166f048 JA |
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 | |
95732b49 | 66 | enable times |
d166f048 JA |
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 | |
95732b49 | 82 | enable times |
d166f048 JA |
83 | enable trap |
84 | enable unset | |
85 | enable -n test worked | |
86 | enable test worked | |
87 | specialname | |
cce855bc | 88 | -specialname |
d166f048 JA |
89 | FOO=BAR |
90 | FOO=BAR | |
91 | hash: hash table empty | |
cce855bc | 92 | 0 |
d166f048 JA |
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 | |
7117c2d2 | 108 | ./source5.sub: line 10: /tmp/source-notthere: No such file or directory |
cce855bc | 109 | after bad source 1 |
7117c2d2 | 110 | ./source5.sub: line 17: /tmp/source-notthere: No such file or directory |
3185942a JA |
111 | one - OK |
112 | 0 | |
113 | 0 | |
114 | two - OK | |
115 | 0 | |
116 | three - OK | |
117 | 0 | |
118 | four - OK | |
119 | 0 | |
ac50fbac CR |
120 | abc |
121 | def | |
122 | ghi | |
123 | after | |
124 | one.1 subshell | |
125 | two.1 subshell | |
126 | three.1 subshell | |
127 | four.1 subshell | |
128 | one.2 subshell | |
129 | two.2 subshell | |
130 | three.2 subshell | |
131 | four.2 subshell | |
132 | x29 - done | |
133 | abc | |
134 | def | |
135 | ghi | |
136 | ok | |
d166f048 JA |
137 | AVAR |
138 | foo | |
139 | foo | |
140 | AVAR | |
141 | foo | |
142 | foo | |
143 | AVAR | |
144 | foo | |
cce855bc JA |
145 | declare -x foo="" |
146 | declare -x FOO="\$\$" | |
ac50fbac | 147 | ./builtins.tests: line 213: declare: FOO: not found |
cce855bc | 148 | declare -x FOO="\$\$" |
d166f048 JA |
149 | ok |
150 | ok | |
ac50fbac | 151 | ./builtins.tests: line 245: kill: 4096: invalid signal specification |
d166f048 | 152 | 1 |
bb70624e JA |
153 | a\n\n\nb |
154 | a | |
155 | ||
156 | ||
157 | b | |
495aee44 CR |
158 | before: f = 4 |
159 | inside | |
160 | after: f = 8 bar = 4 | |
a0c0a00f CR |
161 | declare -a c |
162 | declare -A d | |
163 | declare -a c=([0]="4") | |
164 | declare -A c=([0]="4" ) | |
165 | declare -a c=([0]="1" [1]="2" [2]="3") | |
166 | declare -A c=([two]="2" [three]="3" [one]="1" ) | |
167 | declare -a c=([0]="1" [1]="2" [2]="3") | |
168 | declare -a c=([0]="1" [1]="2" [2]="3") | |
ac50fbac CR |
169 | unset |
170 | unset | |
a0c0a00f CR |
171 | assoc 1 unset |
172 | array 1 unset | |
173 | assoc 2 unset | |
174 | array 2 unset | |
175 | unset1 | |
176 | unset2 | |
177 | 1 | |
178 | 1 | |
179 | 1 | |
180 | 1 | |
181 | assoc A | |
182 | array a | |
183 | assoc B unset | |
184 | array b unset | |
185 | scalar 1 | |
186 | scalar 2 | |
187 | scalar 3 unset | |
188 | argv[1] = <one two three> | |
189 | assoc: 3 | |
190 | array: 3 | |
191 | scalar: 13 | |
192 | scalar: 1 | |
193 | scalar: 0 | |
194 | scalar: 1 | |
195 | scalar: 0 | |
196 | scalar: 0 | |
197 | all set: | |
198 | one | |
199 | two | |
200 | f1 () | |
201 | { | |
202 | echo f1 | |
203 | } | |
204 | f2 () | |
205 | { | |
206 | echo f2 | |
207 | } | |
208 | all unset: | |
209 | unset1 | |
210 | unset2 | |
211 | ./builtins6.sub: line 28: declare: f1: not found | |
212 | ./builtins6.sub: line 28: declare: f2: not found | |
213 | all reset: | |
214 | one-one | |
215 | two-one | |
216 | f1 () | |
217 | { | |
218 | echo f1 | |
219 | } | |
220 | f2 () | |
221 | { | |
222 | echo f2 | |
223 | } | |
224 | vars unset: | |
225 | unset1 | |
226 | unset2 | |
227 | f1 () | |
228 | { | |
229 | echo f1 | |
230 | } | |
231 | f2 () | |
232 | { | |
233 | echo f2 | |
234 | } | |
235 | funcs unset: | |
236 | one-two | |
237 | two-two | |
238 | ./builtins.tests: line 266: exit: status: numeric argument required |