]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/new-exp.right
Imported from ../bash-2.05.tar.gz.
[thirdparty/bash.git] / tests / new-exp.right
1 argv[1] = <foo bar>
2 argv[1] = <foo>
3 argv[1] = </usr/homes/chet>
4 argv[1] = </usr/homes/chet>
5 argv[1] = </usr/homes/chet>
6 ./new-exp.tests: HOME: }: syntax error: operand expected (error token is "}")
7 unset
8 argv[1] = </usr/homes/chet>
9 argv[1] = </usr/homes/chet>
10 argv[1] = </usr/homes/chet>
11 argv[1] = </usr/homes/chet>
12 argv[1] = </usr/homes/chet>
13 argv[1] = </usr/homes/chet>
14 argv[1] = </usr/homes/chet>
15 argv[1] = <*@*>
16 argv[1] = <*@*>
17 argv[1] = <@*>
18 argv[1] = <)>
19 argv[1] = <")">
20 argv[1] = <-abcd>
21 argv[2] = <->
22 argv[1] = <-abcd>
23 argv[2] = <->
24 argv[1] = <-abcd->
25 bar foo
26 bar foo
27 bar foo
28 barfoo
29 barfoo
30 \x
31 argv[1] = <abcd>
32 argv[1] = <efg>
33 argv[2] = <nop>
34 argv[1] = <efg>
35 argv[2] = <nop>
36 argv[1] = <hijklmnop>
37 argv[1] = <abcdefghijklmnop>
38 argv[1] = <abcdefghijklmnop>
39 argv[1] = <ab cd>
40 argv[2] = <ef>
41 argv[1] = <gh ij>
42 argv[2] = <kl mn>
43 argv[1] = <gh ij>
44 argv[2] = <kl mn>
45 argv[3] = <op>
46 argv[1] = <ab cd>
47 argv[2] = <ef>
48 argv[3] = <gh ij>
49 argv[4] = <kl mn>
50 argv[5] = <op>
51 argv[1] = </home/chet/foo//bar/abcabcabc>
52 argv[1] = <home/chet/foo//bar/abcabcabc>
53 argv[1] = <home>
54 argv[1] = <home>
55 argv[1] = <home>
56 argv[1] = <home>
57 argv[1] = <abcdefghijklmnop>
58 argv[1] = <4>
59 argv[1] = <op>
60 argv[1] = <abcdefghijklmnop>
61 argv[1] = <abcdefghijklmnop>
62 ./new-exp.tests: ABX: unbound variable
63 ./new-exp.tests: $6: cannot assign in this way
64 argv[1] = <xxcde>
65 argv[1] = <axxde>
66 argv[1] = <abxyz>
67 argv[1] = <abbcde>
68 argv[1] = <abcde>
69 argv[1] = <abcabe>
70 argv[1] = <abcdlast>
71 argv[1] = <abcde>
72 argv[1] = <xxcd>
73 argv[1] = <abxx>
74 argv[1] = <xxgh>
75 argv[1] = <efgh>
76 argv[1] = <xxfgh>
77 argv[1] = <zagh>
78 argv[1] = <zaza>
79 argv[1] = <zagh>
80 argv[1] = <efza>
81 argv[1] = <yyy>
82 argv[2] = <yyy>
83 argv[3] = <yyy>
84 argv[4] = <yyy>
85 argv[5] = <yyy>
86 argv[6] = <yyy>
87 argv[1] = <yyy>
88 argv[2] = <yyy>
89 argv[3] = <yyy>
90 argv[4] = <yyy>
91 argv[5] = <yyy>
92 argv[6] = <yyy>
93 argv[1] = <yyy>
94 argv[2] = <yyy>
95 argv[3] = <yyy>
96 argv[4] = <yyy>
97 argv[5] = <yyy>
98 argv[6] = <yyy>
99 argv[1] = <yyy>
100 argv[2] = <efgh>
101 argv[3] = <ijkl>
102 argv[4] = <mnop>
103 argv[5] = <qrst>
104 argv[6] = <uvwx>
105 argv[1] = <abxx>
106 argv[2] = <efxx>
107 argv[3] = <ijxx>
108 argv[4] = <mnxx>
109 argv[5] = <qrxx>
110 argv[6] = <uvxx>
111 argv[1] = <xxcd>
112 argv[1] = <xxcd>
113 argv[2] = <xxgh>
114 argv[3] = <xxkl>
115 argv[4] = <xxop>
116 argv[5] = <xxst>
117 argv[6] = <xxwx>
118 argv[1] = <abxx>
119 argv[2] = <efxx>
120 argv[3] = <ijxx>
121 argv[4] = <mnxx>
122 argv[5] = <qrxx>
123 argv[6] = <uvxx>
124 argv[1] = <zaza>
125 argv[1] = <ijza>
126 argv[1] = <zaza>
127 argv[2] = <zaza>
128 argv[3] = <zaza>
129 argv[4] = <zaza>
130 argv[5] = <zaza>
131 argv[6] = <zaza>
132 argv[1] = <zacd>
133 argv[2] = <zagh>
134 argv[3] = <zakl>
135 argv[4] = <zaop>
136 argv[5] = <zast>
137 argv[6] = <zawx>
138 argv[1] = <yyy>
139 argv[2] = <yyy>
140 argv[3] = <yyy>
141 argv[4] = <yyy>
142 argv[5] = <yyy>
143 argv[6] = <yyy>
144 argv[1] = <yyy>
145 argv[2] = <efgh>
146 argv[3] = <ijkl>
147 argv[4] = <mnop>
148 argv[5] = <qrst>
149 argv[6] = <uvwx>
150 argv[1] = <abcd>
151 argv[2] = <efgh>
152 argv[3] = <ijkl>
153 argv[4] = <mnop>
154 argv[5] = <qrst>
155 argv[6] = <uvwyyy>
156
157 This
158 string
159 has
160 multiple
161 lines.
162 This-string-has-multiple-lines.
163 this is a test of proc subst
164 this is test 2
165 ./new-exp2.sub: /tmp/bashtmp.x*: No such file or directory
166 ./new-exp2.sub: /tmp/redir-notthere: No such file or directory
167 1
168 argv[1] = <6>
169 ./new-exp.tests: ${#:}: bad substitution
170 argv[1] = <'>
171 argv[1] = <">
172 argv[1] = <"hello">
173 argv[1] = <>
174 argv[1] = <>
175 argv[1] = <>
176 argv[1] = <abcdef>
177 argv[1] = <abc def>
178 argv[1] = <abcdef>
179 argv[1] = <abc>
180 argv[2] = <def>
181 argv[1] = <abcdef>
182 argv[1] = <abc def>
183 argv[1] = <abcdef>
184 argv[1] = <abc def>
185 argv[1] = <ab>
186 argv[2] = <cd>
187 argv[3] = <ef>
188 argv[4] = <gh>
189 argv[1] = <ab>
190 argv[2] = <cd>
191 argv[3] = <ef>
192 argv[4] = <gh>
193 argv[1] = <ab>
194 argv[2] = <cd>
195 argv[3] = <ef>
196 argv[4] = <gh>
197 argv[1] = <>
198 argv[1] = <>
199 argv[1] = <>
200 argv[1] = <>
201 argv[1] = <>
202 argv[1] = <>
203 argv[1] = <hijklmnopqrstuv>
204 argv[1] = <pqrstuv>
205 argv[1] = <uvwxyz>
206 argv[1] = <abcdefghijklmnopqrstuvwxyz>
207 argv[1] = <abcdefghijklmnopqrst>
208 argv[1] = <klmnopq>
209 argv[1] = <klmnopq>
210 argv[1] = <klmnopq>
211 argv[1] = <"2 3">
212 argv[1] = <"2:3">
213 argv[1] = <"34">
214 argv[1] = <"3456">
215 argv[1] = <"3456">
216 argv[1] = <"3456">
217 argv[1] = <^A>
218 argv[2] = <^B>
219 argv[3] = <^?>
220 argv[1] = <^A>
221 argv[2] = <^B>
222 argv[3] = <^?>
223 argv[1] = <^A>
224 argv[2] = <^B>
225 argv[3] = <^?>
226 argv[1] = <^A>
227 argv[2] = <^B>
228 argv[3] = <^?>
229 argv[1] = <one/two>
230 argv[1] = <one/two>
231 argv[1] = <two>
232 argv[1] = <oneonetwo>
233 argv[1] = <onetwo>
234 argv[1] = <two>
235 argv[1] = <oneonetwo>
236 ./new-exp.tests: -2: substring expression < 0
237 argv[1] = <defghi>
238 argv[1] = <efghi>
239 argv[1] = <e*docrine>
240 argv[1] = <e*docri*e>
241 argv[1] = <endocrine>
242 argv[1] = <endocrine>
243 argv[1] = <endocrine>
244 argv[1] = <endocrine>
245 argv[1] = <endocrine>
246 argv[1] = <endocrine>
247 argv[1] = </usr/bin>
248 argv[2] = </bin>
249 argv[3] = </usr/local/bin>
250 argv[4] = </usr/gnu/bin>
251 argv[5] = </usr/bin/X11>
252 argv[6] = </sbin>
253 argv[7] = </usr/sbin>
254 argv[1] = <r>
255 argv[2] = <s>
256 argv[3] = <t>
257 argv[4] = <u>
258 argv[5] = <v>
259 argv[6] = <w>
260 argv[7] = <x>
261 argv[8] = <y>
262 argv[9] = <z>
263 argv[1] = <r>
264 argv[2] = <s>
265 argv[3] = <t>
266 argv[4] = <u>
267 argv[5] = <v>
268 argv[6] = <w>
269 argv[7] = <x>
270 argv[8] = <y>
271 argv[9] = <z>
272 argv[1] = <r>
273 argv[2] = <s>
274 argv[3] = <t>
275 argv[4] = <u>
276 argv[5] = <v>
277 argv[6] = <w>
278 argv[7] = <x>
279 argv[8] = <y>
280 argv[9] = <z>
281 argv[1] = <r>
282 argv[2] = <s>
283 argv[3] = <t>
284 argv[4] = <u>
285 argv[5] = <v>
286 argv[6] = <w>
287 argv[7] = <x>
288 argv[8] = <y>
289 argv[9] = <z>
290 argv[1] = <a>
291 argv[2] = <a>
292 argv[3] = <a>
293 argv[4] = <a>
294 argv[5] = <a>
295 argv[6] = <a>
296 argv[7] = <a>
297 argv[8] = <a>
298 argv[9] = <a>
299 argv[1] = <a>
300 argv[2] = <a>
301 argv[3] = <a>
302 argv[4] = <a>
303 argv[5] = <a>
304 argv[6] = <a>
305 argv[7] = <a>
306 argv[8] = <a>
307 argv[9] = <a>
308 argv[1] = <r>
309 argv[2] = <s>
310 argv[3] = <t>
311 argv[4] = <u>
312 argv[5] = <v>
313 argv[6] = <w>
314 argv[7] = <x>
315 argv[8] = <y>
316 argv[9] = <z>
317 argv[1] = <r>
318 argv[2] = <s>
319 argv[3] = <t>
320 argv[4] = <u>
321 argv[5] = <v>
322 argv[6] = <w>
323 argv[7] = <x>
324 argv[8] = <y>
325 argv[9] = <z>
326 argv[1] = <r>
327 argv[2] = <s>
328 argv[3] = <t>
329 argv[4] = <u>
330 argv[5] = <v>
331 argv[6] = <w>
332 argv[7] = <x>
333 argv[8] = <y>
334 argv[9] = <z>
335 argv[1] = <r>
336 argv[2] = <s>
337 argv[3] = <t>
338 argv[4] = <u>
339 argv[5] = <v>
340 argv[6] = <w>
341 argv[7] = <x>
342 argv[8] = <y>
343 argv[9] = <z>
344 argv[1] = <r>
345 argv[2] = <s>
346 argv[3] = <t>
347 argv[4] = <u>
348 argv[5] = <v>
349 argv[6] = <w>
350 argv[7] = <x>
351 argv[8] = <y>
352 argv[9] = <z>
353 argv[1] = <r>
354 argv[2] = <s>
355 argv[3] = <t>
356 argv[4] = <u>
357 argv[5] = <v>
358 argv[6] = <w>
359 argv[7] = <x>
360 argv[8] = <y>
361 argv[9] = <z>
362 argv[1] = <a>
363 argv[2] = <a>
364 argv[3] = <a>
365 argv[4] = <a>
366 argv[5] = <a>
367 argv[6] = <a>
368 argv[7] = <a>
369 argv[8] = <a>
370 argv[9] = <a>
371 argv[1] = <a>
372 argv[2] = <a>
373 argv[3] = <a>
374 argv[4] = <a>
375 argv[5] = <a>
376 argv[6] = <a>
377 argv[7] = <a>
378 argv[8] = <a>
379 argv[9] = <a>
380 argv[1] = <r>
381 argv[2] = <s>
382 argv[3] = <t>
383 argv[4] = <u>
384 argv[5] = <v>
385 argv[6] = <w>
386 argv[7] = <x>
387 argv[8] = <y>
388 argv[9] = <z>
389 argv[1] = <r>
390 argv[2] = <s>
391 argv[3] = <t>
392 argv[4] = <u>
393 argv[5] = <v>
394 argv[6] = <w>
395 argv[7] = <x>
396 argv[8] = <y>
397 argv[9] = <z>
398 ./new-exp.tests: $9: unbound variable
399 ./new-exp.tests: 9: unbound variable
400 ./new-exp.tests: UNSET: unbound variable
401 ./new-exp.tests: UNSET: unbound variable
402 ./new-exp.tests: UNSET: unbound variable
403 ./new-exp.tests: UNSET: unbound variable
404 ./new-exp.tests: UNSET: unbound variable
405 argv[1] = <5>
406 argv[1] = <#>
407 argv[1] = <#>
408 argv[1] = <>
409 argv[1] = <_QUANTITY>
410 argv[2] = <_QUART>
411 argv[3] = <_QUEST>
412 argv[4] = <_QUILL>
413 argv[5] = <_QUOTA>
414 argv[6] = <_QUOTE>
415 argv[1] = <_QUANTITY>
416 argv[2] = <_QUART>
417 argv[3] = <_QUEST>
418 argv[4] = <_QUILL>
419 argv[5] = <_QUOTA>
420 argv[6] = <_QUOTE>
421 argv[1] = <_QUANTITY-_QUART-_QUEST-_QUILL-_QUOTA-_QUOTE>
422 ./new-exp3.sub: ${!_Q* }: bad substitution
423 ./new-exp3.sub: ${!1*}: bad substitution
424 ./new-exp3.sub: ${!@*}: bad substitution
425 ./new-exp.tests: ${$(($#-1))}: bad substitution
426 argv[1] = <a>
427 argv[2] = <b>
428 argv[3] = <c>
429 argv[4] = <d>
430 argv[5] = <e>
431 argv[6] = <f>
432 argv[7] = <g>
433 argv[1] = <a>
434 argv[2] = <b>
435 argv[3] = <c>
436 argv[4] = <d>
437 argv[5] = <e>
438 argv[1] = <a>
439 argv[1] = <a>
440 argv[2] = <b>
441 argv[1] = <>
442 ./new-exp.tests: $(($# - 2)): substring expression < 0
443 ./new-exp.tests: ABXD: parameter unset