1 ---------------------------- Test 1 ------------------------------ 2 PATTERN at the start of a line. 3 In the middle of a line, PATTERN appears. 4 Check up on PATTERN near the end. 5 RC=0 6 ---------------------------- Test 2 ------------------------------ 7 PATTERN at the start of a line. 8 RC=0 9 ---------------------------- Test 3 ------------------------------ 10 7:PATTERN at the start of a line. 11 8:In the middle of a line, PATTERN appears. 12 10:This pattern is in lower case. 13 623:Check up on PATTERN near the end. 14 RC=0 15 ---------------------------- Test 4 ------------------------------ 16 4 17 RC=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. 26 RC=0 27 ---------------------------- Test 6 ------------------------------ 28 7:PATTERN at the start of a line. 29 8:In the middle of a line, PATTERN appears. 30 10:This pattern is in lower case. 31 623:Check up on PATTERN near the end. 32 3:Here is the pattern again. 33 5:Pattern 34 42:This line contains pattern not on a line by itself. 35 RC=0 36 ---------------------------- Test 7 ------------------------------ 37 ./testdata/grepinput 38 ./testdata/grepinputx 39 RC=0 40 ---------------------------- Test 8 ------------------------------ 41 ./testdata/grepinput 42 RC=0 43 ---------------------------- Test 9 ------------------------------ 44 RC=0 45 ---------------------------- Test 10 ----------------------------- 46 RC=1 47 ---------------------------- Test 11 ----------------------------- 48 1:This is a second file of input for the pcregrep tests. 49 2: 50 4: 51 5:Pattern 52 6:That time it was on a line by itself. 53 7: 54 8:To pat or not to pat, that is the question. 55 9: 56 10:complete pair 57 11:of lines 58 12: 59 13:That was a complete pair 60 14:of lines all by themselves. 61 15: 62 16:complete pair 63 17:of lines 64 18: 65 19:And there they were again, to check line numbers. 66 20: 67 21:one 68 22:two 69 23:three 70 24:four 71 25:five 72 26:six 73 27:seven 74 28:eight 75 29:nine 76 30:ten 77 31:eleven 78 32:twelve 79 33:thirteen 80 34:fourteen 81 35:fifteen 82 36:sixteen 83 37:seventeen 84 38:eighteen 85 39:nineteen 86 40:twenty 87 41: 88 43:This is the last line of this file. 89 RC=0 90 ---------------------------- Test 12 ----------------------------- 91 Pattern 92 RC=0 93 ---------------------------- Test 13 ----------------------------- 94 Here is the pattern again. 95 That time it was on a line by itself. 96 seventeen 97 This line contains pattern not on a line by itself. 98 RC=0 99 ---------------------------- Test 14 ----------------------------- 100 ./testdata/grepinputx:To pat or not to pat, that is the question. 101 RC=0 102 ---------------------------- Test 15 ----------------------------- 103 pcre2grep: Error in command-line regex at offset 4: quantifier does not follow a repeatable item 104 RC=2 105 ---------------------------- Test 16 ----------------------------- 106 pcre2grep: Failed to open ./testdata/nonexistfile: No such file or directory 107 RC=2 108 ---------------------------- Test 17 ----------------------------- 109 features should be added at the end, because some of the tests involve the 110 output of line numbers, and we don't want these to change. 111 RC=0 112 ---------------------------- Test 18 ----------------------------- 113 4:features should be added at the end, because some of the tests involve the 114 output of line numbers, and we don't want these to change. 115 583:brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. 116 ------------------------------------------------------------------------------- 117 RC=0 118 ---------------------------- Test 19 ----------------------------- 119 Pattern 120 RC=0 121 ---------------------------- Test 20 ----------------------------- 122 10:complete pair 123 of lines 124 16:complete pair 125 of lines 126 RC=0 127 ---------------------------- Test 21 ----------------------------- 128 24:four 129 25-five 130 26-six 131 27-seven 132 -- 133 34:fourteen 134 35-fifteen 135 36-sixteen 136 37-seventeen 137 RC=0 138 ---------------------------- Test 22 ----------------------------- 139 21-one 140 22-two 141 23-three 142 24:four 143 -- 144 31-eleven 145 32-twelve 146 33-thirteen 147 34:fourteen 148 RC=0 149 ---------------------------- Test 23 ----------------------------- 150 one 151 two 152 three 153 four 154 five 155 six 156 seven 157 -- 158 eleven 159 twelve 160 thirteen 161 fourteen 162 fifteen 163 sixteen 164 seventeen 165 RC=0 166 ---------------------------- Test 24 ----------------------------- 167 four 168 five 169 six 170 seven 171 eight 172 nine 173 ten 174 eleven 175 twelve 176 thirteen 177 fourteen 178 fifteen 179 sixteen 180 seventeen 181 eighteen 182 nineteen 183 twenty 184 185 This line contains pattern not on a line by itself. 186 This is the last line of this file. 187 RC=0 188 ---------------------------- Test 25 ----------------------------- 189 15- 190 16-complete pair 191 17-of lines 192 18- 193 19-And there they were again, to check line numbers. 194 20- 195 21-one 196 22-two 197 23-three 198 24:four 199 25-five 200 26-six 201 27-seven 202 28-eight 203 29-nine 204 30-ten 205 31-eleven 206 32-twelve 207 33-thirteen 208 34:fourteen 209 RC=0 210 ---------------------------- Test 26 ----------------------------- 211 212 complete pair 213 of lines 214 215 And there they were again, to check line numbers. 216 217 one 218 two 219 three 220 four 221 five 222 six 223 seven 224 eight 225 nine 226 ten 227 eleven 228 twelve 229 thirteen 230 fourteen 231 fifteen 232 sixteen 233 seventeen 234 eighteen 235 nineteen 236 twenty 237 238 This line contains pattern not on a line by itself. 239 This is the last line of this file. 240 RC=0 241 ---------------------------- Test 27 ----------------------------- 242 four 243 five 244 six 245 seven 246 eight 247 nine 248 ten 249 eleven 250 twelve 251 thirteen 252 fourteen 253 fifteen 254 sixteen 255 seventeen 256 eighteen 257 nineteen 258 twenty 259 260 This line contains pattern not on a line by itself. 261 This is the last line of this file. 262 RC=0 263 ---------------------------- Test 28 ----------------------------- 264 14-of lines all by themselves. 265 15- 266 16-complete pair 267 17-of lines 268 18- 269 19-And there they were again, to check line numbers. 270 20- 271 21-one 272 22-two 273 23-three 274 24:four 275 25-five 276 26-six 277 27-seven 278 28-eight 279 29-nine 280 30-ten 281 31-eleven 282 32-twelve 283 33-thirteen 284 34:fourteen 285 RC=0 286 ---------------------------- Test 29 ----------------------------- 287 of lines all by themselves. 288 289 complete pair 290 of lines 291 292 And there they were again, to check line numbers. 293 294 one 295 two 296 three 297 four 298 five 299 six 300 seven 301 eight 302 nine 303 ten 304 eleven 305 twelve 306 thirteen 307 fourteen 308 fifteen 309 sixteen 310 seventeen 311 eighteen 312 nineteen 313 twenty 314 315 This line contains pattern not on a line by itself. 316 This is the last line of this file. 317 RC=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. 342 RC=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. 364 RC=0 365 ---------------------------- Test 32 ----------------------------- 366 ./testdata/grepinputx 367 RC=0 368 ---------------------------- Test 33 ----------------------------- 369 pcre2grep: Failed to open ./testdata/grepnonexist: No such file or directory 370 RC=2 371 ---------------------------- Test 34 ----------------------------- 372 RC=2 373 ---------------------------- Test 35 ----------------------------- 374 ./testdata/grepinput8 375 ./testdata/grepinputx 376 RC=0 377 ---------------------------- Test 36 ----------------------------- 378 ./testdata/grepinput3 379 ./testdata/grepinputx 380 RC=0 381 ---------------------------- Test 37 ----------------------------- 382 24KiB long so that it needs more than a single read() call to process it. New 383 aaaaa0 384 aaaaa2 385 010203040506 386 RC=0 387 ======== STDERR ======== 388 pcre2grep: pcre2_match() gave error -47 while matching this text: 389 390 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 391 392 pcre2grep: pcre2_match() gave error -47 while matching this text: 393 394 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 395 396 pcre2grep: Error -46, -47, -53 or -63 means that a resource limit was exceeded. 397 pcre2grep: Check your regex for nested unlimited loops. 398 ---------------------------- Test 38 ------------------------------ 399 This line contains a binary zero here >< for testing. 400 RC=0 401 ---------------------------- Test 39 ------------------------------ 402 This is a line before the binary zero. 403 This line contains a binary zero here >< for testing. 404 RC=0 405 ---------------------------- Test 40 ------------------------------ 406 This line contains a binary zero here >< for testing. 407 This is a line after the binary zero. 408 RC=0 409 ---------------------------- Test 41 ------------------------------ 410 before the binary zero 411 after the binary zero 412 RC=0 413 ---------------------------- Test 42 ------------------------------ 414 ./testdata/grepinput:595:before the binary zero 415 ./testdata/grepinput:597:after the binary zero 416 RC=0 417 ---------------------------- Test 43 ------------------------------ 418 595:before 419 595:zero 420 596:zero 421 597:after 422 597:zero 423 RC=0 424 ---------------------------- Test 44 ------------------------------ 425 595:before 426 595:zero 427 596:zero 428 597:zero 429 RC=0 430 ---------------------------- Test 45 ------------------------------ 431 10:pattern 432 595:binary 433 596:binary 434 597:binary 435 RC=0 436 ---------------------------- Test 46 ------------------------------ 437 pcre2grep: Error in 2nd command-line regex at offset 9: missing closing parenthesis 438 RC=2 439 ---------------------------- Test 47 ------------------------------ 440 AB.VE 441 RC=0 442 ---------------------------- Test 48 ------------------------------ 443 ABOVE the elephant 444 AB.VE 445 AB.VE the turtle 446 RC=0 447 ---------------------------- Test 49 ------------------------------ 448 ABOVE the elephant 449 AB.VE 450 AB.VE the turtle 451 PUT NEW DATA ABOVE THIS LINE. 452 RC=0 453 ---------------------------- Test 50 ------------------------------ 454 RC=1 455 ---------------------------- Test 51 ------------------------------ 456 over the lazy dog. 457 This time it jumps and jumps and jumps. 458 This line contains \E and (regex) *meta* [characters]. 459 The word is cat in this line 460 The caterpillar sat on the mat 461 The snowcat is not an animal 462 A buried feline in the syndicate 463 RC=0 464 ---------------------------- Test 52 ------------------------------ 465 fox [1;31mjumps[0m 466 This time it [1;31mjumps[0m and [1;31mjumps[0m and [1;31mjumps[0m. 467 RC=0 468 ---------------------------- Test 53 ------------------------------ 469 36976,6 470 36994,4 471 37028,4 472 37070,5 473 37087,4 474 RC=0 475 ---------------------------- Test 54 ------------------------------ 476 595:15,6 477 595:33,4 478 596:28,4 479 597:15,5 480 597:32,4 481 RC=0 482 ---------------------------- Test 55 ----------------------------- 483 Here is the [1;31mpattern[0m again. 484 That time it was on a [1;31mline by itself[0m. 485 This line contains [1;31mpattern[0m not on a [1;31mline by itself[0m. 486 RC=0 487 ---------------------------- Test 56 ----------------------------- 488 ./testdata/grepinput:456 489 ./testdata/grepinput3:0 490 ./testdata/grepinput8:0 491 ./testdata/grepinputM:0 492 ./testdata/grepinputv:1 493 ./testdata/grepinputx:0 494 RC=0 495 ---------------------------- Test 57 ----------------------------- 496 ./testdata/grepinput:456 497 ./testdata/grepinputv:1 498 RC=0 499 ---------------------------- Test 58 ----------------------------- 500 PATTERN at the start of a line. 501 In the middle of a line, PATTERN appears. 502 Check up on PATTERN near the end. 503 RC=0 504 ---------------------------- Test 59 ----------------------------- 505 PATTERN at the start of a line. 506 In the middle of a line, PATTERN appears. 507 Check up on PATTERN near the end. 508 RC=0 509 ---------------------------- Test 60 ----------------------------- 510 PATTERN at the start of a line. 511 In the middle of a line, PATTERN appears. 512 Check up on PATTERN near the end. 513 RC=0 514 ---------------------------- Test 61 ----------------------------- 515 PATTERN at the start of a line. 516 In the middle of a line, PATTERN appears. 517 Check up on PATTERN near the end. 518 RC=0 519 ---------------------------- Test 62 ----------------------------- 520 pcre2grep: pcre2_match() gave error -47 while matching text that starts: 521 522 This is a file of miscellaneous text that is used as test data for checking 523 that the pcregrep command is working correctly. The file must be more than 524 24KiB long so that it needs more than a single re 525 526 pcre2grep: Error -46, -47, -53 or -63 means that a resource limit was exceeded. 527 pcre2grep: Check your regex for nested unlimited loops. 528 RC=1 529 ---------------------------- Test 63 ----------------------------- 530 pcre2grep: pcre2_match() gave error -53 while matching text that starts: 531 532 This is a file of miscellaneous text that is used as test data for checking 533 that the pcregrep command is working correctly. The file must be more than 534 24KiB long so that it needs more than a single re 535 536 pcre2grep: Error -46, -47, -53 or -63 means that a resource limit was exceeded. 537 pcre2grep: Check your regex for nested unlimited loops. 538 RC=1 539 ---------------------------- Test 64 ------------------------------ 540 appears 541 RC=0 542 ---------------------------- Test 65 ------------------------------ 543 pear 544 RC=0 545 ---------------------------- Test 66 ------------------------------ 546 RC=0 547 ---------------------------- Test 67 ------------------------------ 548 RC=0 549 ---------------------------- Test 68 ------------------------------ 550 pear 551 RC=0 552 ---------------------------- Test 69 ----------------------------- 553 1:This is a second file of input for the pcregrep tests. 554 2: 555 4: 556 5:Pattern 557 6:That time it was on a line by itself. 558 7: 559 8:To pat or not to pat, that is the question. 560 9: 561 10:complete pair 562 11:of lines 563 12: 564 13:That was a complete pair 565 14:of lines all by themselves. 566 15: 567 16:complete pair 568 17:of lines 569 18: 570 19:And there they were again, to check line numbers. 571 20: 572 21:one 573 22:two 574 23:three 575 24:four 576 25:five 577 26:six 578 27:seven 579 28:eight 580 29:nine 581 30:ten 582 31:eleven 583 32:twelve 584 33:thirteen 585 34:fourteen 586 35:fifteen 587 36:sixteen 588 37:seventeen 589 38:eighteen 590 39:nineteen 591 40:twenty 592 41: 593 43:This is the last line of this file. 594 RC=0 595 ---------------------------- Test 70 ----------------------------- 596 [1;31mtriple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt 597 598 [0m[1;31mtriple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt 599 600 [0m[1;31mtriple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt 601 602 [0m[1;31mtriple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt 603 604 [0mRC=0 605 1:[1;31mtriple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt 606 607 [0m6:[1;31mtriple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt 608 609 [0m8:[1;31mtriple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt 610 611 [0m13:[1;31mtriple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt 612 613 [0mRC=0 614 triple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt 615 616 triple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt 617 618 triple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt 619 620 triple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt 621 622 RC=0 623 1:triple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt 624 625 6:triple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt 626 627 8:triple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt 628 629 13:triple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt 630 631 RC=0 632 ---------------------------- Test 71 ----------------------------- 633 01 634 RC=0 635 ---------------------------- Test 72 ----------------------------- 636 [1;31m01[0m0203040506 637 RC=0 638 ---------------------------- Test 73 ----------------------------- 639 [1;31m01[0m 640 RC=0 641 ---------------------------- Test 74 ----------------------------- 642 01 643 02 644 RC=0 645 ---------------------------- Test 75 ----------------------------- 646 [1;31m01[0m[1;31m02[0m03040506 647 RC=0 648 ---------------------------- Test 76 ----------------------------- 649 [1;31m01[0m 650 [1;31m02[0m 651 RC=0 652 ---------------------------- Test 77 ----------------------------- 653 01 654 03 655 RC=0 656 ---------------------------- Test 78 ----------------------------- 657 [1;31m01[0m02[1;31m03[0m040506 658 RC=0 659 ---------------------------- Test 79 ----------------------------- 660 [1;31m01[0m 661 [1;31m03[0m 662 RC=0 663 ---------------------------- Test 80 ----------------------------- 664 01 665 RC=0 666 ---------------------------- Test 81 ----------------------------- 667 [1;31m01[0m0203040506 668 RC=0 669 ---------------------------- Test 82 ----------------------------- 670 [1;31m01[0m 671 RC=0 672 ---------------------------- Test 83 ----------------------------- 673 pcre2grep: line 4 of file ./testdata/grepinput3 is too long for the internal buffer 674 pcre2grep: the maximum buffer size is 100 675 pcre2grep: use the --max-buffer-size option to change it 676 RC=2 677 ---------------------------- Test 84 ----------------------------- 678 testdata/grepinputv:fox jumps 679 testdata/grepinputx:complete pair 680 testdata/grepinputx:That was a complete pair 681 testdata/grepinputx:complete pair 682 testdata/grepinput3:triple: t7_txt s1_tag s_txt p_tag p_txt o_tag o_txt 683 RC=0 684 ---------------------------- Test 85 ----------------------------- 685 ./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. 686 RC=0 687 ---------------------------- Test 86 ----------------------------- 688 Binary file ./testdata/grepbinary matches 689 RC=0 690 ---------------------------- Test 87 ----------------------------- 691 RC=1 692 ---------------------------- Test 88 ----------------------------- 693 Binary file ./testdata/grepbinary matches 694 RC=0 695 ---------------------------- Test 89 ----------------------------- 696 RC=1 697 ---------------------------- Test 90 ----------------------------- 698 RC=1 699 ---------------------------- Test 91 ----------------------------- 700 The quick brown fx jumps over the lazy dog. 701 RC=0 702 ---------------------------- Test 92 ----------------------------- 703 The quick brown fx jumps over the lazy dog. 704 RC=0 705 ---------------------------- Test 93 ----------------------------- 706 The quick brown fx jumps over the lazy dog. 707 RC=0 708 ---------------------------- Test 94 ----------------------------- 709 ./testdata/grepinput8 710 ./testdata/grepinputx 711 RC=0 712 ---------------------------- Test 95 ----------------------------- 713 testdata/grepinputx:complete pair 714 testdata/grepinputx:That was a complete pair 715 testdata/grepinputx:complete pair 716 RC=0 717 ---------------------------- Test 96 ----------------------------- 718 ./testdata/grepinput3 719 ./testdata/grepinput8 720 ./testdata/grepinputx 721 RC=0 722 ---------------------------- Test 97 ----------------------------- 723 ./testdata/grepinput3 724 ./testdata/grepinputx 725 RC=0 726 ---------------------------- Test 98 ----------------------------- 727 ./testdata/grepinputx 728 RC=0 729 ---------------------------- Test 99 ----------------------------- 730 ./testdata/grepinput3 731 ./testdata/grepinputx 732 RC=0 733 ---------------------------- Test 100 ------------------------------ 734 ./testdata/grepinput:zerothe. 735 ./testdata/grepinput:zeroa 736 ./testdata/grepinput:zerothe. 737 RC=0 738 ---------------------------- Test 101 ------------------------------ 739 ./testdata/grepinput:[1;31m.[0m|[1;31mzero[0m|[1;31mthe[0m|[1;31m.[0m 740 ./testdata/grepinput:[1;31mzero[0m|[1;31ma[0m 741 ./testdata/grepinput:[1;31m.[0m|[1;31mzero[0m|[1;31mthe[0m|[1;31m.[0m 742 RC=0 743 ---------------------------- Test 102 ----------------------------- 744 2: 745 5: 746 7: 747 9: 748 12: 749 14: 750 RC=0 751 ---------------------------- Test 103 ----------------------------- 752 RC=0 753 ---------------------------- Test 104 ----------------------------- 754 2: 755 5: 756 7: 757 9: 758 12: 759 14: 760 RC=0 761 ---------------------------- Test 105 ----------------------------- 762 triple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt 763 764 triple: t2_txt s1_tag s_txt p_tag p_txt o_tag 765 Lorem [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. 766 767 triple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt 768 769 triple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt 770 771 triple: t5_txt s1_tag s_txt p_tag p_txt o_tag 772 o_txt 773 774 triple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt 775 776 triple: t7_txt s1_tag s_txt p_tag p_txt o_tag o_txt 777 RC=0 778 ---------------------------- Test 106 ----------------------------- 779 a 780 RC=0 781 ---------------------------- Test 107 ----------------------------- 782 1:0,1 783 2:0,1 784 2:1,1 785 2:2,1 786 2:3,1 787 2:4,1 788 RC=0 789 ---------------------------- Test 108 ------------------------------ 790 RC=0 791 ---------------------------- Test 109 ----------------------------- 792 RC=0 793 ---------------------------- Test 110 ----------------------------- 794 match 1: 795 a 796 /1/a 797 match 2: 798 b 799 /2/b 800 match 3: 801 c 802 /3/c 803 match 4: 804 d 805 /4/d 806 match 5: 807 e 808 /5/e 809 RC=0 810 ---------------------------- Test 111 ----------------------------- 811 607:0,12 812 609:0,12 813 611:0,12 814 613:0,12 815 615:0,12 816 RC=0 817 ---------------------------- Test 112 ----------------------------- 818 37172,12 819 37184,12 820 37196,12 821 37208,12 822 37220,12 823 RC=0 824 ---------------------------- Test 113 ----------------------------- 825 480 826 RC=0 827 ---------------------------- Test 114 ----------------------------- 828 testdata/grepinput:469 829 testdata/grepinput3:0 830 testdata/grepinput8:0 831 testdata/grepinputM:2 832 testdata/grepinputv:3 833 testdata/grepinputx:6 834 TOTAL:480 835 RC=0 836 ---------------------------- Test 115 ----------------------------- 837 testdata/grepinput:469 838 testdata/grepinputM:2 839 testdata/grepinputv:3 840 testdata/grepinputx:6 841 TOTAL:480 842 RC=0 843 ---------------------------- Test 116 ----------------------------- 844 478 845 RC=0 846 ---------------------------- Test 117 ----------------------------- 847 469 848 0 849 0 850 2 851 3 852 6 853 480 854 RC=0 855 ---------------------------- Test 118 ----------------------------- 856 testdata/grepinput3 857 testdata/grepinput8 858 RC=0 859 ---------------------------- Test 119 ----------------------------- 860 123 861 456 862 789 863 --- 864 abc 865 def 866 xyz 867 --- 868 RC=0 869 ---------------------------- Test 120 ------------------------------ 870 ./testdata/grepinput:the binary zero.:zerothe. 871 ./testdata/grepinput:a binary zero:zeroa 872 ./testdata/grepinput:the binary zero.:zerothe. 873 RC=0 874 ---------------------------- Test 121 ----------------------------- 875 This line contains \E and (regex) *meta* [characters]. 876 RC=0 877 ---------------------------- Test 122 ----------------------------- 878 over the lazy dog. 879 The word is cat in this line 880 RC=0 881 ---------------------------- Test 123 ----------------------------- 882 over the lazy dog. 883 The word is cat in this line 884 RC=0 885 ---------------------------- Test 124 ----------------------------- 886 3:[1;31mstart end[0m in between [1;31mstart 887 end[0m and following 888 7:[1;31mstart end[0m in between [1;31mstart 889 end[0m and following [1;31mstart 890 end[0m other stuff 891 11:[1;31mstart end[0m in between [1;31mstart 892 893 end[0m 894 16:[1;31mstart end[0m in between [1;31mstart 895 end[0m 896 RC=0 897 3:[1;31mstart end[0m in between [1;31mstart 898 end[0m and following 899 5-Other stuff 900 6- 901 7:[1;31mstart end[0m in between [1;31mstart 902 end[0m and following [1;31mstart 903 end[0m other stuff 904 10- 905 11:[1;31mstart end[0m in between [1;31mstart 906 907 end[0m 908 14- 909 15-** These two lines must be last. 910 16:[1;31mstart end[0m in between [1;31mstart 911 end[0m 912 RC=0 913 3:start end in between start 914 end and following 915 7:start end in between start 916 end and following start 917 end other stuff 918 11:start end in between start 919 920 end 921 16:start end in between start 922 end 923 RC=0 924 3:start end in between start 925 end and following 926 5-Other stuff 927 6- 928 7:start end in between start 929 end and following start 930 end other stuff 931 10- 932 11:start end in between start 933 934 end 935 14- 936 15-** These two lines must be last. 937 16:start end in between start 938 end 939 RC=0 940 ---------------------------- Test 125 ----------------------------- 941 [1;31ma[0m[1;31mb[0m[1;31mc[0m[1;31md[0m 942 RC=0 943 [1;31ma[0m[1;31mb[0m[1;31mc[0m[1;31md[0m 944 RC=0 945 [1;31ma[0mb[1;31mc[0md 946 RC=0 947 [1;31ma[0mb[1;31mc[0md 948 RC=0 949 ---------------------------- Test 126 ----------------------------- 950 ABCXYZ 951 RC=0 952