|
From: | Paul Eggert |
Subject: | bug#69929: Can grep -q report matches in incomplete lines? |
Date: | Fri, 22 Mar 2024 14:12:20 -0700 |
User-agent: | Mozilla Thunderbird |
On 3/22/24 12:25, Dennis Clarke via Bug reports for GNU grep wrote:
Old Solaris 8, once fully patched, was definately compliant with SUSv2 which is all of POSIX.1b-1993, POSIX.1c-1996
POSIX does not specify the behavior of grep when the input is not a text file, and a file that ends in a non-newline is not a text file. So Solaris grep and GNU grep can do what they like when the input ends in a non-newline; they don't have to agree with each other.
[Prev in Thread] | Current Thread | [Next in Thread] |