bug#63780: Reversing the grep message output type matching binary files (without the -a option added) changed from stdout to stderr

2023-05-31 Thread David G. Pickett
I concur with Arnold: stdout/FD1 is for the data stream, stderr/FD2 is for errors and similar user communication outside the data stream.  Finding a file, binary or otherside, should get it reported the same way.  As grep was a *VERY* mature product, such a strange behavior should not have bee

bug#63819: Gnu `grep '.*'` does not match an empty string.

2023-05-31 Thread Bob Vincent Il (US)
I discovered only today that the following commands all behave identically: * grep -q '.*' * grep -q '.\+' * grep -q . * grep -qE '.*' * grep -qE '.+' * grep -qE . Gnu grep documentation says: The period ‘.’ matches any single character. It is unspecified whether ‘.’ mat

bug#63780: Reversing the grep message output type matching binary files (without the -a option added) changed from stdout to stderr

2023-05-31 Thread Paul Eggert
On 2023-05-30 14:01, g...@tlinx.org wrote: Why is finding the desired text in a binary file not a "positive finding" as it is in a text file? But it is a positive finding. Grep exits with zero status, which is a positive result. There is no perfect solution here. In the old days when 'grep'

bug#63819: Gnu `grep '.*'` does not match an empty string.

2023-05-31 Thread Paul Eggert
On 2023-05-31 10:18, Bob Vincent Il (US) via Bug reports for GNU grep wrote: I discovered only today that the following commands all behave identically: * grep -q '.*' * grep -q '.\+' * grep -q . * grep -qE '.*' * grep -qE '.+' * grep -qE . No they don't. For exam

bug#63819: Gnu `grep '.*'` does not match an empty string.

2023-05-31 Thread Bob Vincent Il (US)
Okay, but `echo ''` does not output an empty string. It outputs a line feed character. Bob Vincent (US-TSO) PwC IT - NGC - PUPPET DEV OPS | Senior Manager Work: 906-984-3549 Mobile: 770-744-1792 PricewaterhouseCoopers LLP From: Paul Eggert Sent: Wednesday, May

bug#63819: Gnu `grep '.*'` does not match an empty string.

2023-05-31 Thread Paul Eggert
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 "