summaryrefslogtreecommitdiff
path: root/tests/match-lines
Commit message (Collapse)AuthorAgeFilesLines
* maint: update all copyright year number rangesJim Meyering2020-01-011-1/+1
| | | | | | | | Run "make update-copyright" and then... * gnulib: Update to latest with copyright year adjusted. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Likewise. * doc/grep.in.1: Use "-" in copyright year ranges, not \en.
* maint: update all copyright dates via "make update-copyright"Jim Meyering2019-01-011-1/+1
| | | | * gnulib: Also update submodule for its copyright updates.
* maint: update URLsPaul Eggert2018-04-211-1/+1
| | | | | Mostly this is just changing http: to https:. In one or two places it removes no-longer-useful URLs.
* maint: update gnulib and copyright dates for 2018Jim Meyering2018-01-061-1/+1
| | | | | | * gnulib: Update to latest. * all files: Run "make update-copyright". * bootstrap: Update from gnulib.
* maint: update gnulib and copyright dates for 2017Jim Meyering2017-01-011-1/+1
| | | | | * gnulib: Update to latest. * all files: Run "make update-copyright".
* maint: update copyright year, bootstrap, init.shJim Meyering2016-01-011-1/+1
| | | | | | | | Run "make update-copyright" and then... * gnulib: Update to latest. * tests/init.sh: Update from gnulib. * bootstrap: Likewise.
* maint: update copyright year ranges to include 2015Jim Meyering2015-01-011-1/+1
| | | | | Run "make update-copyright". Also, ... * grep.texi: Update manually, converting each "--" to "-".
* grep -F -x -o PAT would print an extra newline for each matchNorihiro Tanaka2014-11-141-0/+36
* src/kwsearch.c (Fexecute): Correctly compute the length of a match by subtracting 2 (not 1) when match_lines is set. With -x, we augment the "line" by both prepending and appending an EOLBYTE to the search pattern. Here, we must correct for that. However, to compensate, when we are using -x (--line-regexp) and start_ptr is NULL, we have to add 1 to the length so that we still print the trailing EOLBYTE. Introduced by commit v2.18-85-g2c94326. * tests/match-lines: Add a new test. * tests/Makefile.am (TESTS): Add it. * NEWS (Bug fixes): Mention it.