|
From: | Paul Eggert |
Subject: | bug#63819: Gnu `grep '.*'` does not match an empty string. |
Date: | Wed, 31 May 2023 20:15:30 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
On 2023-05-31 19:17, Bob Vincent Il (US) wrote:
Okay, but `echo ''` does not output an empty string. It outputs a line feed character.
The line feed is not considered. Grep looks only for matches of "any part of the line excluding the terminating <newline>" <https://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html>.
Closing the bug report as it appears to be due to a misunderstanding of how 'grep' works.
[Prev in Thread] | Current Thread | [Next in Thread] |