xref: /netbsd-src/external/bsd/tre/dist/tests/agrep/exitstatus.ok (revision 63d4abf06d37aace2f9e41a494102a64fe3abddb)
1#### TEST: agrep  this-will-be-found exitstatus.in
2this-will-be-found
3
4Exit status 0.
5#### TEST: agrep  this-will-be-found < exitstatus.in
6this-will-be-found
7
8Exit status 0.
9#### TEST: agrep -c this-will-be-found exitstatus.in
101
11
12Exit status 0.
13#### TEST: agrep -c this-will-be-found < exitstatus.in
141
15
16Exit status 0.
17#### TEST: agrep -H this-will-be-found exitstatus.in
18exitstatus.in:this-will-be-found
19
20Exit status 0.
21#### TEST: agrep -H this-will-be-found < exitstatus.in
22(standard input):this-will-be-found
23
24Exit status 0.
25#### TEST: agrep -l this-will-be-found exitstatus.in
26exitstatus.in
27
28Exit status 0.
29#### TEST: agrep -l this-will-be-found < exitstatus.in
30(standard input)
31
32Exit status 0.
33#### TEST: agrep -n this-will-be-found exitstatus.in
341:this-will-be-found
35
36Exit status 0.
37#### TEST: agrep -n this-will-be-found < exitstatus.in
381:this-will-be-found
39
40Exit status 0.
41#### TEST: agrep -s this-will-be-found exitstatus.in
420:this-will-be-found
43
44Exit status 0.
45#### TEST: agrep -s this-will-be-found < exitstatus.in
460:this-will-be-found
47
48Exit status 0.
49#### TEST: agrep -M this-will-be-found exitstatus.in
50this-will-be-found
51
52Exit status 0.
53#### TEST: agrep -M this-will-be-found < exitstatus.in
54this-will-be-found
55
56Exit status 0.
57#### TEST: agrep --show-position this-will-be-found exitstatus.in
580-18:this-will-be-found
59
60Exit status 0.
61#### TEST: agrep --show-position this-will-be-found < exitstatus.in
620-18:this-will-be-found
63
64Exit status 0.
65#### TEST: agrep --color this-will-be-found exitstatus.in
66this-will-be-found
67
68Exit status 0.
69#### TEST: agrep --color this-will-be-found < exitstatus.in
70this-will-be-found
71
72Exit status 0.
73#### TEST: agrep -H -n -s --color --show-position this-will-be-found exitstatus.in
74exitstatus.in:1:0:0-18:this-will-be-found
75
76Exit status 0.
77#### TEST: agrep -H -n -s --color --show-position this-will-be-found < exitstatus.in
78(standard input):1:0:0-18:this-will-be-found
79
80Exit status 0.
81#### TEST: agrep  -v this-will-be-found exitstatus.in
82so will this
83just some stuff
84
85Exit status 0.
86#### TEST: agrep  -v this-will-be-found < exitstatus.in
87so will this
88just some stuff
89
90Exit status 0.
91#### TEST: agrep -c -v this-will-be-found exitstatus.in
922
93
94Exit status 0.
95#### TEST: agrep -c -v this-will-be-found < exitstatus.in
962
97
98Exit status 0.
99#### TEST: agrep -H -v this-will-be-found exitstatus.in
100exitstatus.in:so will this
101exitstatus.in:just some stuff
102
103Exit status 0.
104#### TEST: agrep -H -v this-will-be-found < exitstatus.in
105(standard input):so will this
106(standard input):just some stuff
107
108Exit status 0.
109#### TEST: agrep -l -v this-will-be-found exitstatus.in
110exitstatus.in
111
112Exit status 0.
113#### TEST: agrep -l -v this-will-be-found < exitstatus.in
114(standard input)
115
116Exit status 0.
117#### TEST: agrep -n -v this-will-be-found exitstatus.in
1182:so will this
1193:just some stuff
120
121Exit status 0.
122#### TEST: agrep -n -v this-will-be-found < exitstatus.in
1232:so will this
1243:just some stuff
125
126Exit status 0.
127#### TEST: agrep -s -v this-will-be-found exitstatus.in
1280:so will this
1290:just some stuff
130
131Exit status 0.
132#### TEST: agrep -s -v this-will-be-found < exitstatus.in
1330:so will this
1340:just some stuff
135
136Exit status 0.
137#### TEST: agrep -M -v this-will-be-found exitstatus.in
138so will this
139just some stuff
140
141Exit status 0.
142#### TEST: agrep -M -v this-will-be-found < exitstatus.in
143so will this
144just some stuff
145
146Exit status 0.
147#### TEST: agrep --show-position -v this-will-be-found exitstatus.in
1480-12:so will this
1490-15:just some stuff
150
151Exit status 0.
152#### TEST: agrep --show-position -v this-will-be-found < exitstatus.in
1530-12:so will this
1540-15:just some stuff
155
156Exit status 0.
157#### TEST: agrep --color -v this-will-be-found exitstatus.in
158so will this
159just some stuff
160
161Exit status 0.
162#### TEST: agrep --color -v this-will-be-found < exitstatus.in
163so will this
164just some stuff
165
166Exit status 0.
167#### TEST: agrep -H -n -s --color --show-position -v this-will-be-found exitstatus.in
168exitstatus.in:2:0:0-12:so will this
169exitstatus.in:3:0:0-15:just some stuff
170
171Exit status 0.
172#### TEST: agrep -H -n -s --color --show-position -v this-will-be-found < exitstatus.in
173(standard input):2:0:0-12:so will this
174(standard input):3:0:0-15:just some stuff
175
176Exit status 0.
177#### TEST: agrep  this-wont-be-found exitstatus.in
178
179Exit status 1.
180#### TEST: agrep  this-wont-be-found < exitstatus.in
181
182Exit status 1.
183#### TEST: agrep -c this-wont-be-found exitstatus.in
1840
185
186Exit status 1.
187#### TEST: agrep -c this-wont-be-found < exitstatus.in
1880
189
190Exit status 1.
191#### TEST: agrep -H this-wont-be-found exitstatus.in
192
193Exit status 1.
194#### TEST: agrep -H this-wont-be-found < exitstatus.in
195
196Exit status 1.
197#### TEST: agrep -l this-wont-be-found exitstatus.in
198
199Exit status 1.
200#### TEST: agrep -l this-wont-be-found < exitstatus.in
201
202Exit status 1.
203#### TEST: agrep -n this-wont-be-found exitstatus.in
204
205Exit status 1.
206#### TEST: agrep -n this-wont-be-found < exitstatus.in
207
208Exit status 1.
209#### TEST: agrep -s this-wont-be-found exitstatus.in
210
211Exit status 1.
212#### TEST: agrep -s this-wont-be-found < exitstatus.in
213
214Exit status 1.
215#### TEST: agrep -M this-wont-be-found exitstatus.in
216
217Exit status 1.
218#### TEST: agrep -M this-wont-be-found < exitstatus.in
219
220Exit status 1.
221#### TEST: agrep --show-position this-wont-be-found exitstatus.in
222
223Exit status 1.
224#### TEST: agrep --show-position this-wont-be-found < exitstatus.in
225
226Exit status 1.
227#### TEST: agrep --color this-wont-be-found exitstatus.in
228
229Exit status 1.
230#### TEST: agrep --color this-wont-be-found < exitstatus.in
231
232Exit status 1.
233#### TEST: agrep -H -n -s --color --show-position this-wont-be-found exitstatus.in
234
235Exit status 1.
236#### TEST: agrep -H -n -s --color --show-position this-wont-be-found < exitstatus.in
237
238Exit status 1.
239#### TEST: agrep  -v this-wont-be-found exitstatus.in
240this-will-be-found
241so will this
242just some stuff
243
244Exit status 0.
245#### TEST: agrep  -v this-wont-be-found < exitstatus.in
246this-will-be-found
247so will this
248just some stuff
249
250Exit status 0.
251#### TEST: agrep -c -v this-wont-be-found exitstatus.in
2523
253
254Exit status 0.
255#### TEST: agrep -c -v this-wont-be-found < exitstatus.in
2563
257
258Exit status 0.
259#### TEST: agrep -H -v this-wont-be-found exitstatus.in
260exitstatus.in:this-will-be-found
261exitstatus.in:so will this
262exitstatus.in:just some stuff
263
264Exit status 0.
265#### TEST: agrep -H -v this-wont-be-found < exitstatus.in
266(standard input):this-will-be-found
267(standard input):so will this
268(standard input):just some stuff
269
270Exit status 0.
271#### TEST: agrep -l -v this-wont-be-found exitstatus.in
272exitstatus.in
273
274Exit status 0.
275#### TEST: agrep -l -v this-wont-be-found < exitstatus.in
276(standard input)
277
278Exit status 0.
279#### TEST: agrep -n -v this-wont-be-found exitstatus.in
2801:this-will-be-found
2812:so will this
2823:just some stuff
283
284Exit status 0.
285#### TEST: agrep -n -v this-wont-be-found < exitstatus.in
2861:this-will-be-found
2872:so will this
2883:just some stuff
289
290Exit status 0.
291#### TEST: agrep -s -v this-wont-be-found exitstatus.in
2920:this-will-be-found
2930:so will this
2940:just some stuff
295
296Exit status 0.
297#### TEST: agrep -s -v this-wont-be-found < exitstatus.in
2980:this-will-be-found
2990:so will this
3000:just some stuff
301
302Exit status 0.
303#### TEST: agrep -M -v this-wont-be-found exitstatus.in
304this-will-be-found
305so will this
306just some stuff
307
308Exit status 0.
309#### TEST: agrep -M -v this-wont-be-found < exitstatus.in
310this-will-be-found
311so will this
312just some stuff
313
314Exit status 0.
315#### TEST: agrep --show-position -v this-wont-be-found exitstatus.in
3160-18:this-will-be-found
3170-12:so will this
3180-15:just some stuff
319
320Exit status 0.
321#### TEST: agrep --show-position -v this-wont-be-found < exitstatus.in
3220-18:this-will-be-found
3230-12:so will this
3240-15:just some stuff
325
326Exit status 0.
327#### TEST: agrep --color -v this-wont-be-found exitstatus.in
328this-will-be-found
329so will this
330just some stuff
331
332Exit status 0.
333#### TEST: agrep --color -v this-wont-be-found < exitstatus.in
334this-will-be-found
335so will this
336just some stuff
337
338Exit status 0.
339#### TEST: agrep -H -n -s --color --show-position -v this-wont-be-found exitstatus.in
340exitstatus.in:1:0:0-18:this-will-be-found
341exitstatus.in:2:0:0-12:so will this
342exitstatus.in:3:0:0-15:just some stuff
343
344Exit status 0.
345#### TEST: agrep -H -n -s --color --show-position -v this-wont-be-found < exitstatus.in
346(standard input):1:0:0-18:this-will-be-found
347(standard input):2:0:0-12:so will this
348(standard input):3:0:0-15:just some stuff
349
350Exit status 0.
351#### TEST: agrep  . exitstatus.in
352this-will-be-found
353so will this
354just some stuff
355
356Exit status 0.
357#### TEST: agrep  . < exitstatus.in
358this-will-be-found
359so will this
360just some stuff
361
362Exit status 0.
363#### TEST: agrep -c . exitstatus.in
3643
365
366Exit status 0.
367#### TEST: agrep -c . < exitstatus.in
3683
369
370Exit status 0.
371#### TEST: agrep -H . exitstatus.in
372exitstatus.in:this-will-be-found
373exitstatus.in:so will this
374exitstatus.in:just some stuff
375
376Exit status 0.
377#### TEST: agrep -H . < exitstatus.in
378(standard input):this-will-be-found
379(standard input):so will this
380(standard input):just some stuff
381
382Exit status 0.
383#### TEST: agrep -l . exitstatus.in
384exitstatus.in
385
386Exit status 0.
387#### TEST: agrep -l . < exitstatus.in
388(standard input)
389
390Exit status 0.
391#### TEST: agrep -n . exitstatus.in
3921:this-will-be-found
3932:so will this
3943:just some stuff
395
396Exit status 0.
397#### TEST: agrep -n . < exitstatus.in
3981:this-will-be-found
3992:so will this
4003:just some stuff
401
402Exit status 0.
403#### TEST: agrep -s . exitstatus.in
4040:this-will-be-found
4050:so will this
4060:just some stuff
407
408Exit status 0.
409#### TEST: agrep -s . < exitstatus.in
4100:this-will-be-found
4110:so will this
4120:just some stuff
413
414Exit status 0.
415#### TEST: agrep -M . exitstatus.in
416this-will-be-found
417so will this
418just some stuff
419
420Exit status 0.
421#### TEST: agrep -M . < exitstatus.in
422this-will-be-found
423so will this
424just some stuff
425
426Exit status 0.
427#### TEST: agrep --show-position . exitstatus.in
4280-1:this-will-be-found
4290-1:so will this
4300-1:just some stuff
431
432Exit status 0.
433#### TEST: agrep --show-position . < exitstatus.in
4340-1:this-will-be-found
4350-1:so will this
4360-1:just some stuff
437
438Exit status 0.
439#### TEST: agrep --color . exitstatus.in
440this-will-be-found
441so will this
442just some stuff
443
444Exit status 0.
445#### TEST: agrep --color . < exitstatus.in
446this-will-be-found
447so will this
448just some stuff
449
450Exit status 0.
451#### TEST: agrep -H -n -s --color --show-position . exitstatus.in
452exitstatus.in:1:0:0-1:this-will-be-found
453exitstatus.in:2:0:0-1:so will this
454exitstatus.in:3:0:0-1:just some stuff
455
456Exit status 0.
457#### TEST: agrep -H -n -s --color --show-position . < exitstatus.in
458(standard input):1:0:0-1:this-will-be-found
459(standard input):2:0:0-1:so will this
460(standard input):3:0:0-1:just some stuff
461
462Exit status 0.
463#### TEST: agrep  -v . exitstatus.in
464
465Exit status 1.
466#### TEST: agrep  -v . < exitstatus.in
467
468Exit status 1.
469#### TEST: agrep -c -v . exitstatus.in
4700
471
472Exit status 1.
473#### TEST: agrep -c -v . < exitstatus.in
4740
475
476Exit status 1.
477#### TEST: agrep -H -v . exitstatus.in
478
479Exit status 1.
480#### TEST: agrep -H -v . < exitstatus.in
481
482Exit status 1.
483#### TEST: agrep -l -v . exitstatus.in
484
485Exit status 1.
486#### TEST: agrep -l -v . < exitstatus.in
487
488Exit status 1.
489#### TEST: agrep -n -v . exitstatus.in
490
491Exit status 1.
492#### TEST: agrep -n -v . < exitstatus.in
493
494Exit status 1.
495#### TEST: agrep -s -v . exitstatus.in
496
497Exit status 1.
498#### TEST: agrep -s -v . < exitstatus.in
499
500Exit status 1.
501#### TEST: agrep -M -v . exitstatus.in
502
503Exit status 1.
504#### TEST: agrep -M -v . < exitstatus.in
505
506Exit status 1.
507#### TEST: agrep --show-position -v . exitstatus.in
508
509Exit status 1.
510#### TEST: agrep --show-position -v . < exitstatus.in
511
512Exit status 1.
513#### TEST: agrep --color -v . exitstatus.in
514
515Exit status 1.
516#### TEST: agrep --color -v . < exitstatus.in
517
518Exit status 1.
519#### TEST: agrep -H -n -s --color --show-position -v . exitstatus.in
520
521Exit status 1.
522#### TEST: agrep -H -n -s --color --show-position -v . < exitstatus.in
523
524Exit status 1.
525#### TEST: agrep  -d .* dummy exitstatus.in
526
527Exit status 1.
528#### TEST: agrep  -d .* dummy < exitstatus.in
529
530Exit status 1.
531#### TEST: agrep -c -d .* dummy exitstatus.in
532exitstatus.in:0
533
534Exit status 1.
535#### TEST: agrep -c -d .* dummy < exitstatus.in
536
537Exit status 1.
538#### TEST: agrep -H -d .* dummy exitstatus.in
539
540Exit status 1.
541#### TEST: agrep -H -d .* dummy < exitstatus.in
542
543Exit status 1.
544#### TEST: agrep -l -d .* dummy exitstatus.in
545
546Exit status 1.
547#### TEST: agrep -l -d .* dummy < exitstatus.in
548
549Exit status 1.
550#### TEST: agrep -n -d .* dummy exitstatus.in
551
552Exit status 1.
553#### TEST: agrep -n -d .* dummy < exitstatus.in
554
555Exit status 1.
556#### TEST: agrep -s -d .* dummy exitstatus.in
557
558Exit status 1.
559#### TEST: agrep -s -d .* dummy < exitstatus.in
560
561Exit status 1.
562#### TEST: agrep -M -d .* dummy exitstatus.in
563
564Exit status 1.
565#### TEST: agrep -M -d .* dummy < exitstatus.in
566
567Exit status 1.
568#### TEST: agrep --show-position -d .* dummy exitstatus.in
569
570Exit status 1.
571#### TEST: agrep --show-position -d .* dummy < exitstatus.in
572
573Exit status 1.
574#### TEST: agrep --color -d .* dummy exitstatus.in
575
576Exit status 1.
577#### TEST: agrep --color -d .* dummy < exitstatus.in
578
579Exit status 1.
580#### TEST: agrep -H -n -s --color --show-position -d .* dummy exitstatus.in
581
582Exit status 1.
583#### TEST: agrep -H -n -s --color --show-position -d .* dummy < exitstatus.in
584
585Exit status 1.
586#### TEST: agrep  -d {1 dummy exitstatus.in
587
588Exit status 2.
589#### TEST: agrep  -d {1 dummy < exitstatus.in
590
591Exit status 2.
592#### TEST: agrep -c -d {1 dummy exitstatus.in
593
594Exit status 2.
595#### TEST: agrep -c -d {1 dummy < exitstatus.in
596
597Exit status 2.
598#### TEST: agrep -H -d {1 dummy exitstatus.in
599
600Exit status 2.
601#### TEST: agrep -H -d {1 dummy < exitstatus.in
602
603Exit status 2.
604#### TEST: agrep -l -d {1 dummy exitstatus.in
605
606Exit status 2.
607#### TEST: agrep -l -d {1 dummy < exitstatus.in
608
609Exit status 2.
610#### TEST: agrep -n -d {1 dummy exitstatus.in
611
612Exit status 2.
613#### TEST: agrep -n -d {1 dummy < exitstatus.in
614
615Exit status 2.
616#### TEST: agrep -s -d {1 dummy exitstatus.in
617
618Exit status 2.
619#### TEST: agrep -s -d {1 dummy < exitstatus.in
620
621Exit status 2.
622#### TEST: agrep -M -d {1 dummy exitstatus.in
623
624Exit status 2.
625#### TEST: agrep -M -d {1 dummy < exitstatus.in
626
627Exit status 2.
628#### TEST: agrep --show-position -d {1 dummy exitstatus.in
629
630Exit status 2.
631#### TEST: agrep --show-position -d {1 dummy < exitstatus.in
632
633Exit status 2.
634#### TEST: agrep --color -d {1 dummy exitstatus.in
635
636Exit status 2.
637#### TEST: agrep --color -d {1 dummy < exitstatus.in
638
639Exit status 2.
640#### TEST: agrep -H -n -s --color --show-position -d {1 dummy exitstatus.in
641
642Exit status 2.
643#### TEST: agrep -H -n -s --color --show-position -d {1 dummy < exitstatus.in
644
645Exit status 2.
646#### TEST: agrep  \ exitstatus.in
647
648Exit status 2.
649#### TEST: agrep  \ < exitstatus.in
650
651Exit status 2.
652#### TEST: agrep -c \ exitstatus.in
653
654Exit status 2.
655#### TEST: agrep -c \ < exitstatus.in
656
657Exit status 2.
658#### TEST: agrep -H \ exitstatus.in
659
660Exit status 2.
661#### TEST: agrep -H \ < exitstatus.in
662
663Exit status 2.
664#### TEST: agrep -l \ exitstatus.in
665
666Exit status 2.
667#### TEST: agrep -l \ < exitstatus.in
668
669Exit status 2.
670#### TEST: agrep -n \ exitstatus.in
671
672Exit status 2.
673#### TEST: agrep -n \ < exitstatus.in
674
675Exit status 2.
676#### TEST: agrep -s \ exitstatus.in
677
678Exit status 2.
679#### TEST: agrep -s \ < exitstatus.in
680
681Exit status 2.
682#### TEST: agrep -M \ exitstatus.in
683
684Exit status 2.
685#### TEST: agrep -M \ < exitstatus.in
686
687Exit status 2.
688#### TEST: agrep --show-position \ exitstatus.in
689
690Exit status 2.
691#### TEST: agrep --show-position \ < exitstatus.in
692
693Exit status 2.
694#### TEST: agrep --color \ exitstatus.in
695
696Exit status 2.
697#### TEST: agrep --color \ < exitstatus.in
698
699Exit status 2.
700#### TEST: agrep -H -n -s --color --show-position \ exitstatus.in
701
702Exit status 2.
703#### TEST: agrep -H -n -s --color --show-position \ < exitstatus.in
704
705Exit status 2.
706