1---------------------------- Test 1 ------------------------------ 2PATTERN at the start of a line. 3In the middle of a line, PATTERN appears. 4Check up on PATTERN near the end. 5RC=0 6---------------------------- Test 2 ------------------------------ 7PATTERN at the start of a line. 8RC=0 9---------------------------- Test 3 ------------------------------ 107:PATTERN at the start of a line. 118:In the middle of a line, PATTERN appears. 1210:This pattern is in lower case. 13623:Check up on PATTERN near the end. 14RC=0 15---------------------------- Test 4 ------------------------------ 164 17RC=0 18---------------------------- Test 5 ------------------------------ 19./testdata/grepinput:7:PATTERN at the start of a line. 20./testdata/grepinput:8:In the middle of a line, PATTERN appears. 21./testdata/grepinput:10:This pattern is in lower case. 22./testdata/grepinput:623:Check up on PATTERN near the end. 23./testdata/grepinputx:3:Here is the pattern again. 24./testdata/grepinputx:5:Pattern 25./testdata/grepinputx:42:This line contains pattern not on a line by itself. 26RC=0 27---------------------------- Test 6 ------------------------------ 287:PATTERN at the start of a line. 298:In the middle of a line, PATTERN appears. 3010:This pattern is in lower case. 31623:Check up on PATTERN near the end. 323:Here is the pattern again. 335:Pattern 3442:This line contains pattern not on a line by itself. 35RC=0 36---------------------------- Test 7 ------------------------------ 37./testdata/grepinput 38./testdata/grepinputx 39RC=0 40---------------------------- Test 8 ------------------------------ 41./testdata/grepinput 42RC=0 43---------------------------- Test 9 ------------------------------ 44RC=0 45---------------------------- Test 10 ----------------------------- 46RC=1 47---------------------------- Test 11 ----------------------------- 481:This is a second file of input for the pcregrep tests. 492: 504: 515:Pattern 526:That time it was on a line by itself. 537: 548:To pat or not to pat, that is the question. 559: 5610:complete pair 5711:of lines 5812: 5913:That was a complete pair 6014:of lines all by themselves. 6115: 6216:complete pair 6317:of lines 6418: 6519:And there they were again, to check line numbers. 6620: 6721:one 6822:two 6923:three 7024:four 7125:five 7226:six 7327:seven 7428:eight 7529:nine 7630:ten 7731:eleven 7832:twelve 7933:thirteen 8034:fourteen 8135:fifteen 8236:sixteen 8337:seventeen 8438:eighteen 8539:nineteen 8640:twenty 8741: 8843:This is the last line of this file. 89RC=0 90---------------------------- Test 12 ----------------------------- 91Pattern 92RC=0 93---------------------------- Test 13 ----------------------------- 94Here is the pattern again. 95That time it was on a line by itself. 96seventeen 97This line contains pattern not on a line by itself. 98RC=0 99---------------------------- Test 14 ----------------------------- 100./testdata/grepinputx:To pat or not to pat, that is the question. 101RC=0 102---------------------------- Test 15 ----------------------------- 103pcre2grep: Error in command-line regex at offset 4: quantifier does not follow a repeatable item 104RC=2 105---------------------------- Test 16 ----------------------------- 106pcre2grep: Failed to open ./testdata/nonexistfile: No such file or directory 107RC=2 108---------------------------- Test 17 ----------------------------- 109features should be added at the end, because some of the tests involve the 110output of line numbers, and we don't want these to change. 111RC=0 112---------------------------- Test 18 ----------------------------- 1134:features should be added at the end, because some of the tests involve the 114output of line numbers, and we don't want these to change. 115583:brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 116------------------------------------------------------------------------------- 117RC=0 118---------------------------- Test 19 ----------------------------- 119Pattern 120RC=0 121---------------------------- Test 20 ----------------------------- 12210:complete pair 123of lines 12416:complete pair 125of lines 126RC=0 127---------------------------- Test 21 ----------------------------- 12824:four 12925-five 13026-six 13127-seven 132-- 13334:fourteen 13435-fifteen 13536-sixteen 13637-seventeen 137RC=0 138---------------------------- Test 22 ----------------------------- 13921-one 14022-two 14123-three 14224:four 143-- 14431-eleven 14532-twelve 14633-thirteen 14734:fourteen 148RC=0 149---------------------------- Test 23 ----------------------------- 150one 151two 152three 153four 154five 155six 156seven 157-- 158eleven 159twelve 160thirteen 161fourteen 162fifteen 163sixteen 164seventeen 165RC=0 166---------------------------- Test 24 ----------------------------- 167four 168five 169six 170seven 171eight 172nine 173ten 174eleven 175twelve 176thirteen 177fourteen 178fifteen 179sixteen 180seventeen 181eighteen 182nineteen 183twenty 184 185This line contains pattern not on a line by itself. 186This is the last line of this file. 187RC=0 188---------------------------- Test 25 ----------------------------- 18915- 19016-complete pair 19117-of lines 19218- 19319-And there they were again, to check line numbers. 19420- 19521-one 19622-two 19723-three 19824:four 19925-five 20026-six 20127-seven 20228-eight 20329-nine 20430-ten 20531-eleven 20632-twelve 20733-thirteen 20834:fourteen 209RC=0 210---------------------------- Test 26 ----------------------------- 211 212complete pair 213of lines 214 215And there they were again, to check line numbers. 216 217one 218two 219three 220four 221five 222six 223seven 224eight 225nine 226ten 227eleven 228twelve 229thirteen 230fourteen 231fifteen 232sixteen 233seventeen 234eighteen 235nineteen 236twenty 237 238This line contains pattern not on a line by itself. 239This is the last line of this file. 240RC=0 241---------------------------- Test 27 ----------------------------- 242four 243five 244six 245seven 246eight 247nine 248ten 249eleven 250twelve 251thirteen 252fourteen 253fifteen 254sixteen 255seventeen 256eighteen 257nineteen 258twenty 259 260This line contains pattern not on a line by itself. 261This is the last line of this file. 262RC=0 263---------------------------- Test 28 ----------------------------- 26414-of lines all by themselves. 26515- 26616-complete pair 26717-of lines 26818- 26919-And there they were again, to check line numbers. 27020- 27121-one 27222-two 27323-three 27424:four 27525-five 27626-six 27727-seven 27828-eight 27929-nine 28030-ten 28131-eleven 28232-twelve 28333-thirteen 28434:fourteen 285RC=0 286---------------------------- Test 29 ----------------------------- 287of lines all by themselves. 288 289complete pair 290of lines 291 292And there they were again, to check line numbers. 293 294one 295two 296three 297four 298five 299six 300seven 301eight 302nine 303ten 304eleven 305twelve 306thirteen 307fourteen 308fifteen 309sixteen 310seventeen 311eighteen 312nineteen 313twenty 314 315This line contains pattern not on a line by itself. 316This is the last line of this file. 317RC=0 318---------------------------- Test 30 ----------------------------- 319./testdata/grepinput-4-features should be added at the end, because some of the tests involve the 320./testdata/grepinput-5-output of line numbers, and we don't want these to change. 321./testdata/grepinput-6- 322./testdata/grepinput:7:PATTERN at the start of a line. 323./testdata/grepinput:8:In the middle of a line, PATTERN appears. 324./testdata/grepinput-9- 325./testdata/grepinput:10:This pattern is in lower case. 326-- 327./testdata/grepinput-620-PUT NEW DATA ABOVE THIS LINE. 328./testdata/grepinput-621-============================= 329./testdata/grepinput-622- 330./testdata/grepinput:623:Check up on PATTERN near the end. 331-- 332./testdata/grepinputx-1-This is a second file of input for the pcregrep tests. 333./testdata/grepinputx-2- 334./testdata/grepinputx:3:Here is the pattern again. 335./testdata/grepinputx-4- 336./testdata/grepinputx:5:Pattern 337-- 338./testdata/grepinputx-39-nineteen 339./testdata/grepinputx-40-twenty 340./testdata/grepinputx-41- 341./testdata/grepinputx:42:This line contains pattern not on a line by itself. 342RC=0 343---------------------------- Test 31 ----------------------------- 344./testdata/grepinput:7:PATTERN at the start of a line. 345./testdata/grepinput:8:In the middle of a line, PATTERN appears. 346./testdata/grepinput-9- 347./testdata/grepinput:10:This pattern is in lower case. 348./testdata/grepinput-11- 349./testdata/grepinput-12-Here follows a whole lot of stuff that makes the file over 24KiB long. 350./testdata/grepinput-13- 351-- 352./testdata/grepinput:623:Check up on PATTERN near the end. 353./testdata/grepinput-624-This is the last line of this file. 354-- 355./testdata/grepinputx:3:Here is the pattern again. 356./testdata/grepinputx-4- 357./testdata/grepinputx:5:Pattern 358./testdata/grepinputx-6-That time it was on a line by itself. 359./testdata/grepinputx-7- 360./testdata/grepinputx-8-To pat or not to pat, that is the question. 361-- 362./testdata/grepinputx:42:This line contains pattern not on a line by itself. 363./testdata/grepinputx-43-This is the last line of this file. 364RC=0 365---------------------------- Test 32 ----------------------------- 366./testdata/grepinputx 367RC=0 368---------------------------- Test 33 ----------------------------- 369pcre2grep: Failed to open ./testdata/grepnonexist: No such file or directory 370RC=2 371---------------------------- Test 34 ----------------------------- 372RC=2 373---------------------------- Test 35 ----------------------------- 374./testdata/grepinput8 375./testdata/grepinputx 376RC=0 377---------------------------- Test 36 ----------------------------- 378./testdata/grepinput3 379./testdata/grepinputx 380RC=0 381---------------------------- Test 37 ----------------------------- 38224KiB long so that it needs more than a single read() call to process it. New 383aaaaa0 384aaaaa2 385010203040506 386RC=0 387======== STDERR ======== 388pcre2grep: pcre2_match() gave error -47 while matching this text: 389 390aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 391 392pcre2grep: pcre2_match() gave error -47 while matching this text: 393 394aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 395 396pcre2grep: Error -46, -47, -53 or -63 means that a resource limit was exceeded. 397pcre2grep: Check your regex for nested unlimited loops. 398---------------------------- Test 38 ------------------------------ 399This line contains a binary zero here >< for testing. 400RC=0 401---------------------------- Test 39 ------------------------------ 402This is a line before the binary zero. 403This line contains a binary zero here >< for testing. 404RC=0 405---------------------------- Test 40 ------------------------------ 406This line contains a binary zero here >< for testing. 407This is a line after the binary zero. 408RC=0 409---------------------------- Test 41 ------------------------------ 410before the binary zero 411after the binary zero 412RC=0 413---------------------------- Test 42 ------------------------------ 414./testdata/grepinput:595:before the binary zero 415./testdata/grepinput:597:after the binary zero 416RC=0 417---------------------------- Test 43 ------------------------------ 418595:before 419595:zero 420596:zero 421597:after 422597:zero 423RC=0 424---------------------------- Test 44 ------------------------------ 425595:before 426595:zero 427596:zero 428597:after 429597:zero 430RC=0 431---------------------------- Test 45 ------------------------------ 43210:pattern 433595:binary 434596:binary 435597:binary 436RC=0 437---------------------------- Test 46 ------------------------------ 438pcre2grep: Error in 1st command-line regex at offset 8: unmatched closing parenthesis 439pcre2grep: Error in 2nd command-line regex at offset 9: missing closing parenthesis 440pcre2grep: Error in 3rd command-line regex at offset 9: missing terminating ] for character class 441pcre2grep: Error in 4th command-line regex at offset 9: missing terminating ] for character class 442RC=2 443---------------------------- Test 47 ------------------------------ 444AB.VE 445RC=0 446---------------------------- Test 48 ------------------------------ 447ABOVE the elephant 448AB.VE 449AB.VE the turtle 450RC=0 451---------------------------- Test 49 ------------------------------ 452ABOVE the elephant 453AB.VE 454AB.VE the turtle 455PUT NEW DATA ABOVE THIS LINE. 456RC=0 457---------------------------- Test 50 ------------------------------ 458RC=1 459---------------------------- Test 51 ------------------------------ 460over the lazy dog. 461This time it jumps and jumps and jumps. 462This line contains \E and (regex) *meta* [characters]. 463The word is cat in this line 464The caterpillar sat on the mat 465The snowcat is not an animal 466A buried feline in the syndicate 467RC=0 468---------------------------- Test 52 ------------------------------ 469fox [1;31mjumps[0m 470This time it [1;31mjumps[0m and [1;31mjumps[0m and [1;31mjumps[0m. 471RC=0 472---------------------------- Test 53 ------------------------------ 47336976,6 47436994,4 47537028,4 47637070,5 47737087,4 478RC=0 479---------------------------- Test 54 ------------------------------ 480595:15,6 481595:33,4 482596:28,4 483597:15,5 484597:32,4 485RC=0 486---------------------------- Test 55 ----------------------------- 487Here is the [1;31mpattern[0m again. 488That time it was on a [1;31mline by itself[0m. 489This line contains [1;31mpattern[0m not on a [1;31mline by itself[0m. 490RC=0 491---------------------------- Test 56 ----------------------------- 492./testdata/grepinput:456 493./testdata/grepinput3:0 494./testdata/grepinput8:0 495./testdata/grepinputM:0 496./testdata/grepinputv:1 497./testdata/grepinputx:0 498RC=0 499---------------------------- Test 57 ----------------------------- 500./testdata/grepinput:456 501./testdata/grepinputv:1 502RC=0 503---------------------------- Test 58 ----------------------------- 504PATTERN at the start of a line. 505In the middle of a line, PATTERN appears. 506Check up on PATTERN near the end. 507RC=0 508---------------------------- Test 59 ----------------------------- 509PATTERN at the start of a line. 510In the middle of a line, PATTERN appears. 511Check up on PATTERN near the end. 512RC=0 513---------------------------- Test 60 ----------------------------- 514PATTERN at the start of a line. 515In the middle of a line, PATTERN appears. 516Check up on PATTERN near the end. 517RC=0 518---------------------------- Test 61 ----------------------------- 519PATTERN at the start of a line. 520In the middle of a line, PATTERN appears. 521Check up on PATTERN near the end. 522RC=0 523---------------------------- Test 62 ----------------------------- 524pcre2grep: pcre2_match() gave error -47 while matching text that starts: 525 526This is a file of miscellaneous text that is used as test data for checking 527that the pcregrep command is working correctly. The file must be more than 52824KiB long so that it needs more than a single re 529 530pcre2grep: Error -46, -47, -53 or -63 means that a resource limit was exceeded. 531pcre2grep: Check your regex for nested unlimited loops. 532RC=1 533---------------------------- Test 63 ----------------------------- 534pcre2grep: pcre2_match() gave error -53 while matching text that starts: 535 536This is a file of miscellaneous text that is used as test data for checking 537that the pcregrep command is working correctly. The file must be more than 53824KiB long so that it needs more than a single re 539 540pcre2grep: Error -46, -47, -53 or -63 means that a resource limit was exceeded. 541pcre2grep: Check your regex for nested unlimited loops. 542RC=1 543---------------------------- Test 64 ------------------------------ 544appears 545RC=0 546---------------------------- Test 65 ------------------------------ 547pear 548RC=0 549---------------------------- Test 66 ------------------------------ 550RC=0 551---------------------------- Test 67 ------------------------------ 552RC=0 553---------------------------- Test 68 ------------------------------ 554pear 555RC=0 556---------------------------- Test 69 ----------------------------- 5571:This is a second file of input for the pcregrep tests. 5582: 5594: 5605:Pattern 5616:That time it was on a line by itself. 5627: 5638:To pat or not to pat, that is the question. 5649: 56510:complete pair 56611:of lines 56712: 56813:That was a complete pair 56914:of lines all by themselves. 57015: 57116:complete pair 57217:of lines 57318: 57419:And there they were again, to check line numbers. 57520: 57621:one 57722:two 57823:three 57924:four 58025:five 58126:six 58227:seven 58328:eight 58429:nine 58530:ten 58631:eleven 58732:twelve 58833:thirteen 58934:fourteen 59035:fifteen 59136:sixteen 59237:seventeen 59338:eighteen 59439:nineteen 59540:twenty 59641: 59743:This is the last line of this file. 598RC=0 599---------------------------- Test 70 ----------------------------- 600[1;31mtriple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt 601 602[0m[1;31mtriple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt 603 604[0m[1;31mtriple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt 605 606[0m[1;31mtriple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt 607 608[0mRC=0 6091:[1;31mtriple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt 610 611[0m6:[1;31mtriple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt 612 613[0m8:[1;31mtriple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt 614 615[0m13:[1;31mtriple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt 616 617[0mRC=0 618triple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt 619 620triple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt 621 622triple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt 623 624triple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt 625 626RC=0 6271:triple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt 628 6296:triple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt 630 6318:triple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt 632 63313:triple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt 634 635RC=0 636---------------------------- Test 71 ----------------------------- 63701 638RC=0 639---------------------------- Test 72 ----------------------------- 640[1;31m01[0m0203040506 641RC=0 642---------------------------- Test 73 ----------------------------- 643[1;31m01[0m 644RC=0 645---------------------------- Test 74 ----------------------------- 64601 64702 648RC=0 649---------------------------- Test 75 ----------------------------- 650[1;31m01[0m[1;31m02[0m03040506 651RC=0 652---------------------------- Test 76 ----------------------------- 653[1;31m01[0m 654[1;31m02[0m 655RC=0 656---------------------------- Test 77 ----------------------------- 65701 65803 659RC=0 660---------------------------- Test 78 ----------------------------- 661[1;31m01[0m02[1;31m03[0m040506 662RC=0 663---------------------------- Test 79 ----------------------------- 664[1;31m01[0m 665[1;31m03[0m 666RC=0 667---------------------------- Test 80 ----------------------------- 66801 669RC=0 670---------------------------- Test 81 ----------------------------- 671[1;31m01[0m0203040506 672RC=0 673---------------------------- Test 82 ----------------------------- 674[1;31m01[0m 675RC=0 676---------------------------- Test 83 ----------------------------- 677pcre2grep: line 4 of file ./testdata/grepinput3 is too long for the internal buffer 678pcre2grep: the maximum buffer size is 100 679pcre2grep: use the --max-buffer-size option to change it 680RC=2 681---------------------------- Test 84 ----------------------------- 682testdata/grepinputv:fox jumps 683testdata/grepinputx:complete pair 684testdata/grepinputx:That was a complete pair 685testdata/grepinputx:complete pair 686testdata/grepinput3:triple: t7_txt s1_tag s_txt p_tag p_txt o_tag o_txt 687RC=0 688---------------------------- Test 85 ----------------------------- 689./testdata/grepinput3:Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 690RC=0 691---------------------------- Test 86 ----------------------------- 692Binary file ./testdata/grepbinary matches 693RC=0 694---------------------------- Test 87 ----------------------------- 695RC=1 696---------------------------- Test 88 ----------------------------- 697Binary file ./testdata/grepbinary matches 698RC=0 699---------------------------- Test 89 ----------------------------- 700RC=1 701---------------------------- Test 90 ----------------------------- 702RC=1 703---------------------------- Test 91 ----------------------------- 704The quick brown fx jumps over the lazy dog. 705RC=0 706---------------------------- Test 92 ----------------------------- 707The quick brown fx jumps over the lazy dog. 708RC=0 709---------------------------- Test 93 ----------------------------- 710The quick brown fx jumps over the lazy dog. 711RC=0 712---------------------------- Test 94 ----------------------------- 713./testdata/grepinput8 714./testdata/grepinputx 715RC=0 716---------------------------- Test 95 ----------------------------- 717testdata/grepinputx:complete pair 718testdata/grepinputx:That was a complete pair 719testdata/grepinputx:complete pair 720RC=0 721---------------------------- Test 96 ----------------------------- 722./testdata/grepinput3 723./testdata/grepinput8 724./testdata/grepinputx 725RC=0 726---------------------------- Test 97 ----------------------------- 727./testdata/grepinput3 728./testdata/grepinputx 729RC=0 730---------------------------- Test 98 ----------------------------- 731./testdata/grepinputx 732RC=0 733---------------------------- Test 99 ----------------------------- 734./testdata/grepinput3 735./testdata/grepinputx 736RC=0 737---------------------------- Test 100 ------------------------------ 738./testdata/grepinput:zerothe. 739./testdata/grepinput:zeroa 740./testdata/grepinput:zerothe. 741RC=0 742---------------------------- Test 101 ------------------------------ 743./testdata/grepinput:[1;31m.[0m|[1;31mzero[0m|[1;31mthe[0m|[1;31m.[0m 744./testdata/grepinput:[1;31mzero[0m|[1;31ma[0m 745./testdata/grepinput:[1;31m.[0m|[1;31mzero[0m|[1;31mthe[0m|[1;31m.[0m 746RC=0 747---------------------------- Test 102 ----------------------------- 7482: 7495: 7507: 7519: 75212: 75314: 754RC=0 755---------------------------- Test 103 ----------------------------- 756RC=0 757---------------------------- Test 104 ----------------------------- 7582: 7595: 7607: 7619: 76212: 76314: 764RC=0 765---------------------------- Test 105 ----------------------------- 766triple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt 767 768triple: t2_txt s1_tag s_txt p_tag p_txt o_tag 769Lorem [1;31mipsum[0m dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 770 771triple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt 772 773triple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt 774 775triple: t5_txt s1_tag s_txt p_tag p_txt o_tag 776o_txt 777 778triple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt 779 780triple: t7_txt s1_tag s_txt p_tag p_txt o_tag o_txt 781RC=0 782---------------------------- Test 106 ----------------------------- 783a 784RC=0 785---------------------------- Test 107 ----------------------------- 7861:0,1 7872:0,1 7882:1,1 7892:2,1 7902:3,1 7912:4,1 792RC=0 793---------------------------- Test 108 ------------------------------ 794RC=0 795---------------------------- Test 109 ----------------------------- 796RC=0 797---------------------------- Test 110 ----------------------------- 798match 1: 799 a 800/1/a 801match 2: 802 b 803/2/b 804match 3: 805 c 806/3/c 807match 4: 808 d 809/4/d 810match 5: 811 e 812/5/e 813RC=0 814---------------------------- Test 111 ----------------------------- 815607:0,12 816609:0,12 817611:0,12 818613:0,12 819615:0,12 820RC=0 821---------------------------- Test 112 ----------------------------- 82237172,12 82337184,12 82437196,12 82537208,12 82637220,12 827RC=0 828---------------------------- Test 113 ----------------------------- 829480 830RC=0 831---------------------------- Test 114 ----------------------------- 832testdata/grepinput:469 833testdata/grepinput3:0 834testdata/grepinput8:0 835testdata/grepinputM:2 836testdata/grepinputv:3 837testdata/grepinputx:6 838TOTAL:480 839RC=0 840---------------------------- Test 115 ----------------------------- 841testdata/grepinput:469 842testdata/grepinputM:2 843testdata/grepinputv:3 844testdata/grepinputx:6 845TOTAL:480 846RC=0 847---------------------------- Test 116 ----------------------------- 848478 849RC=0 850---------------------------- Test 117 ----------------------------- 851469 8520 8530 8542 8553 8566 857480 858RC=0 859---------------------------- Test 118 ----------------------------- 860testdata/grepinput3 861testdata/grepinput8 862RC=0 863---------------------------- Test 119 ----------------------------- 864123 865456 866789 867--- 868abc 869def 870xyz 871--- 872RC=0 873---------------------------- Test 120 ------------------------------ 874./testdata/grepinput:the binary zero.:zerothe. 875./testdata/grepinput:a binary zero:zeroa 876./testdata/grepinput:the binary zero.:zerothe. 877RC=0 878the binary zero.: 879 880RC=0 881pcre2grep: Error in output text at offset 2: decimal number expected 882RC=2 883pcre2grep: Error in output text at offset 3: no character after $ 884RC=2 885pcre2grep: Error in output text at offset 8: too many hex digits 886RC=2 887pcre2grep: Error in output text at offset 5: missing closing brace 888RC=2 889pcre2grep: Error in output text at offset 7: code point greater than 0xff is invalid 890RC=2 891---------------------------- Test 121 ----------------------------- 892This line contains \E and (regex) *meta* [characters]. 893RC=0 894---------------------------- Test 122 ----------------------------- 895over the lazy dog. 896The word is cat in this line 897RC=0 898---------------------------- Test 123 ----------------------------- 899over the lazy dog. 900The word is cat in this line 901RC=0 902---------------------------- Test 124 ----------------------------- 9033:[1;31mstart end[0m in between [1;31mstart 904end[0m and following 9057:[1;31mstart end[0m in between [1;31mstart 906end[0m and following [1;31mstart 907end[0m other stuff 90811:[1;31mstart end[0m in between [1;31mstart 909 910end[0m 91116:[1;31mstart end[0m in between [1;31mstart 912end[0m 913RC=0 9143:[1;31mstart end[0m in between [1;31mstart 915end[0m and following 9165-Other stuff 9176- 9187:[1;31mstart end[0m in between [1;31mstart 919end[0m and following [1;31mstart 920end[0m other stuff 92110- 92211:[1;31mstart end[0m in between [1;31mstart 923 924end[0m 92514- 92615-** These two lines must be last. 92716:[1;31mstart end[0m in between [1;31mstart 928end[0m 929RC=0 9303:start end in between start 931end and following 9327:start end in between start 933end and following start 934end other stuff 93511:start end in between start 936 937end 93816:start end in between start 939end 940RC=0 9413:start end in between start 942end and following 9435-Other stuff 9446- 9457:start end in between start 946end and following start 947end other stuff 94810- 94911:start end in between start 950 951end 95214- 95315-** These two lines must be last. 95416:start end in between start 955end 956RC=0 957---------------------------- Test 125 ----------------------------- 958[1;31ma[0m[1;31mb[0m[1;31mc[0m[1;31md[0m 959RC=0 960[1;31ma[0m[1;31mb[0m[1;31mc[0m[1;31md[0m 961RC=0 962[1;31ma[0mb[1;31mc[0md 963RC=0 964[1;31ma[0mb[1;31mc[0md 965RC=0 966[1;20ma[0mb[1;20mc[0md 967RC=0 968---------------------------- Test 126 ----------------------------- 969ABCXYZ 970RC=0 971pcre2grep: Error in regex in line 2 of testtemp1grep at offset 4: unmatched closing parenthesis 972RC=2 973---------------------------- Test 127 ----------------------------- 974pattern 975RC=0 976---------------------------- Test 128 ----------------------------- 977pcre2grep: Requested group 1 cannot be captured. 978pcre2grep: Use --om-capture to increase the size of the capture vector. 979RC=2 980---------------------------- Test 129 ----------------------------- 981The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the 982lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox 983RC=0 984---------------------------- Test 130 ----------------------------- 985fox 986fox 987fox 988fox 989RC=0 990---------------------------- Test 131 ----------------------------- 9912 992RC=0 993---------------------------- Test 132 ----------------------------- 994match 1: 995 a 996match 2: 997 b 998--- 999 a 1000RC=0 1001---------------------------- Test 133 ----------------------------- 1002match 1: 1003 a 1004match 2: 1005 b 1006--- 1007match 2: 1008 b 1009match 3: 1010 c 1011RC=0 1012---------------------------- Test 134 ----------------------------- 1013(standard input):2:=AB3CD5= 1014RC=0 1015---------------------------- Test 135 ----------------------------- 1016./testdata/grepinputv@The word is cat in this line 1017RC=0 1018./testdata/grepinputv@./testdata/grepinputv@RC=0 1019./testdata/grepinputv@This line contains \E and (regex) *meta* [characters]. 1020./testdata/grepinputv@The word is cat in this line 1021./testdata/grepinputv@The caterpillar sat on the mat 1022RC=0 1023testdata/grepinputM3:start end in between start 1024end and following 1025testdata/grepinputM7:start end in between start 1026end and following start 1027end other stuff 1028testdata/grepinputM11:start end in between start 1029 1030end 1031testdata/grepinputM16:start end in between start 1032end 1033RC=0 1034---------------------------- Test 136 ----------------------------- 1035pcre2grep: Malformed number "1MK" after -m 1036Usage: pcre2grep [-AaBCcDdeFfHhIilLMmNnOoqrstuUVvwxZ] [long options] [pattern] [files] 1037Type "pcre2grep --help" for more information and the long options. 1038RC=2 1039pcre2grep: Malformed number "1MK" after --max-count 1040Usage: pcre2grep [-AaBCcDdeFfHhIilLMmNnOoqrstuUVvwxZ] [long options] [pattern] [files] 1041Type "pcre2grep --help" for more information and the long options. 1042RC=2 1043---------------------------- Test 137 ----------------------------- 1044Last line 1045has no newline 1046RC=0 1047---------------------------- Test 138 ----------------------------- 1048pcre2grep: pcre2_match() gave error -63 while matching this text: 1049 1050AbC 1051 1052pcre2grep: pcre2_match() gave error -63 while matching this text: 1053 1054AbC 1055 1056pcre2grep: pcre2_match() gave error -63 while matching this text: 1057 1058AbC 1059 1060pcre2grep: pcre2_match() gave error -63 while matching this text: 1061 1062AbC 1063 1064pcre2grep: pcre2_match() gave error -63 while matching this text: 1065 1066AbC 1067 1068pcre2grep: pcre2_match() gave error -63 while matching this text: 1069 1070AbC 1071 1072pcre2grep: pcre2_match() gave error -63 while matching this text: 1073 1074AbC 1075 1076pcre2grep: pcre2_match() gave error -63 while matching this text: 1077 1078AbC 1079 1080pcre2grep: pcre2_match() gave error -63 while matching this text: 1081 1082AbC 1083 1084pcre2grep: pcre2_match() gave error -63 while matching this text: 1085 1086AbC 1087 1088pcre2grep: pcre2_match() gave error -63 while matching this text: 1089 1090AbC 1091 1092pcre2grep: pcre2_match() gave error -63 while matching this text: 1093 1094AbC 1095 1096pcre2grep: pcre2_match() gave error -63 while matching this text: 1097 1098AbC 1099 1100pcre2grep: pcre2_match() gave error -63 while matching this text: 1101 1102AbC 1103 1104pcre2grep: pcre2_match() gave error -63 while matching this text: 1105 1106AbC 1107 1108pcre2grep: pcre2_match() gave error -63 while matching this text: 1109 1110AbC 1111 1112pcre2grep: pcre2_match() gave error -63 while matching this text: 1113 1114AbC 1115 1116pcre2grep: pcre2_match() gave error -63 while matching this text: 1117 1118AbC 1119 1120pcre2grep: pcre2_match() gave error -63 while matching this text: 1121 1122AbC 1123 1124pcre2grep: pcre2_match() gave error -63 while matching this text: 1125 1126AbC 1127 1128pcre2grep: pcre2_match() gave error -63 while matching this text: 1129 1130AbC 1131 1132pcre2grep: pcre2_match() gave error -63 while matching this text: 1133 1134AbC 1135 1136pcre2grep: Too many errors - abandoned. 1137pcre2grep: Error -46, -47, -53 or -63 means that a resource limit was exceeded. 1138pcre2grep: Check your regex for nested unlimited loops. 1139RC=2 1140---------------------------- Test 139 ----------------------------- 1141fox jumps 1142RC=0 1143---------------------------- Test 140 ----------------------------- 1144The quick brown 1145fox jumps 1146RC=0 1147---------------------------- Test 141 ----------------------------- 1148(standard input):This is a line from stdin. 1149RC=0 1150---------------------------- Test 142 ----------------------------- 1151pcre2grep: Failed to open /does/not/exist: No such file or directory 1152RC=2 1153---------------------------- Test 143 ----------------------------- 1154fox jumps 1155The word is cat in this line 1156The caterpillar sat on the mat 1157The snowcat is not an animal 1158A buried feline in the syndicate 1159RC=0 1160---------------------------- Test 144 ----------------------------- 1161pcre2grep: Failed to open /non/exist: No such file or directory 1162RC=2 1163---------------------------- Test 145 ----------------------------- 1164The quick brown 1165fox jumps 1166over the lazy dog. 1167This time it jumps and jumps and jumps. 1168This line contains \E and (regex) *meta* [characters]. 1169The word is cat in this line 1170The caterpillar sat on the mat 1171The snowcat is not an animal 1172A buried feline in the syndicate 1173 1174RC=0 1175---------------------------- Test 146 ----------------------------- 1176(standard input):A123B 1177RC=0 1178A123B 1179fox jumps 1180RC=0 1181Usage: pcre2grep [-AaBCcDdeFfHhIilLMmNnOoqrstuUVvwxZ] [long options] [pattern] [files] 1182Type "pcre2grep --help" for more information and the long options. 1183RC=2 1184---------------------------- Test 147 ----------------------------- 1185pcre2grep: Failed to open -nonfile: No such file or directory 1186RC=2 1187---------------------------- Test 148 ----------------------------- 1188pcre2grep: Unknown option --nonexist 1189Usage: pcre2grep [-AaBCcDdeFfHhIilLMmNnOoqrstuUVvwxZ] [long options] [pattern] [files] 1190Type "pcre2grep --help" for more information and the long options. 1191RC=2 1192pcre2grep: Unknown option letter '-' in "-n-n-bad" 1193Usage: pcre2grep [-AaBCcDdeFfHhIilLMmNnOoqrstuUVvwxZ] [long options] [pattern] [files] 1194Type "pcre2grep --help" for more information and the long options. 1195RC=2 1196pcre2grep: Data missing after --context 1197Usage: pcre2grep [-AaBCcDdeFfHhIilLMmNnOoqrstuUVvwxZ] [long options] [pattern] [files] 1198Type "pcre2grep --help" for more information and the long options. 1199RC=2 1200pcre2grep: Cannot mix --only-matching, --output, --file-offsets and/or --line-offsets 1201Usage: pcre2grep [-AaBCcDdeFfHhIilLMmNnOoqrstuUVvwxZ] [long options] [pattern] [files] 1202Type "pcre2grep --help" for more information and the long options. 1203RC=2 1204pcre2grep: Unknown colour setting "badvalue" 1205RC=2 1206pcre2grep: Invalid newline specifier "badvalue" 1207RC=2 1208pcre2grep: Invalid value "badvalue" for -d 1209RC=2 1210pcre2grep: Invalid value "badvalue" for -D 1211RC=2 1212pcre2grep: --buffer-size must be greater than zero 1213RC=2 1214pcre2grep: Error in --exclude regex at offset 7: missing closing parenthesis 1215RC=2 1216pcre2grep: Failed to open /non/exist: No such file or directory 1217RC=2 1218pcre2grep: Failed to open /non/exist: No such file or directory 1219RC=2 1220pcre2grep: Failed to open /non/exist: No such file or directory 1221RC=2 1222---------------------------- Test 149 ----------------------------- 1223Binary file ./testdata/grepbinary matches 1224RC=0 1225pcre2grep: unknown value "wrong" for binary-files 1226Usage: pcre2grep [-AaBCcDdeFfHhIilLMmNnOoqrstuUVvwxZ] [long options] [pattern] [files] 1227Type "pcre2grep --help" for more information and the long options. 1228RC=2 1229---------------------------- Test 150 ----------------------------- 1230pcre2grep: Failed to set locale badlocale (obtained from LC_CTYPE) 1231RC=2 1232---------------------------- Test 151 ----------------------------- 1233[1;31mThe[0m quick brown 1234[1;31mThe wo[0mrd is cat in [1;31mthis[0m line 1235[1;31mThe[0m caterpillar sat on the mat 1236[1;31mThe[0m snowcat is not an animal 1237