|
From: | Dennis Clarke |
Subject: | bug#69929: Can grep -q report matches in incomplete lines? |
Date: | Sat, 23 Mar 2024 16:13:06 -0400 |
User-agent: | Mozilla Thunderbird |
On 3/22/24 17:12, Paul Eggert wrote:
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-1996POSIX 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.
re "a file that ends in a non-newline is not a text file" <-- really? That is a new one on me. Regardless ... this is entirely a GNU sed discussion so the comparison to some XPG4 grep from old old Solaris is not really all that helpful. Sorry. -- Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken
[Prev in Thread] | Current Thread | [Next in Thread] |