[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#69929: Can grep -q report matches in incomplete lines?
From: |
Martin Schulte |
Subject: |
bug#69929: Can grep -q report matches in incomplete lines? |
Date: |
Sat, 23 Mar 2024 22:07:58 +0100 |
Hello David!
Am Fri, 22 Mar 2024 20:42:12 +0000 (UTC) schrieb "David G. Pickett" via Bug
reports for GNU grep <bug-grep@gnu.org>:
> Most users consider a line at EOF lacking a trailing newline as still a line,
> but perhaps some do not?
Well, POSIX doesn't:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
The definition may cause trouble with shell's read - e.g. when reading a file
created on Windows with notepad where it is easy to accidentally create an
incomplete line (compared to vi where I don't know an easy way).
Best regards,
Martin
- bug#69929: Can grep -q report matches in incomplete lines?, (continued)
- bug#69929: Can grep -q report matches in incomplete lines?, Niels Möller, 2024/03/22
- bug#69929: Can grep -q report matches in incomplete lines?, jackson, 2024/03/22
- bug#69929: Can grep -q report matches in incomplete lines?, David G. Pickett, 2024/03/22
- bug#69929: Can grep -q report matches in incomplete lines?, David G. Pickett, 2024/03/22
- bug#69929: Can grep -q report matches in incomplete lines?, Dennis Clarke, 2024/03/23
- bug#69929: Can grep -q report matches in incomplete lines?,
Martin Schulte <=
- bug#69929: Can grep -q report matches in incomplete lines?, David G. Pickett, 2024/03/24
- bug#69929: Can grep -q report matches in incomplete lines?, Paul Eggert, 2024/03/24
- bug#69929: Can grep -q report matches in incomplete lines?, Gary Johnson, 2024/03/25
- bug#69929: Can grep -q report matches in incomplete lines?, Paul Eggert, 2024/03/25