Code

src/utils_tail: Remove newline characters at the end of a line.
authorSebastian Harl <sh@tokkee.org>
Mon, 23 Aug 2010 17:02:06 +0000 (19:02 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 23 Aug 2010 17:07:22 +0000 (19:07 +0200)
commit7a58a2fc82acfec330a6dd1f8f051b60120039c3
tree52b4dc70d9502e2f599c7e7ab5ef68e8b10240c6
parenta0f552b023917a5b5dac834a5b8d1ef5b82f27f5
src/utils_tail: Remove newline characters at the end of a line.

The tool is supposed to work line-based, so a) the newline character is
implicit and b) imho, does not belong to the string which is then further
processed.

Also, this allows '$' to match the end of a line when applying a regex to the
line, no matter if the REG_NEWLINE flag has been used when compiling the regex
or not.
src/utils_tail.c