bug#69929: Can grep -q report matches in incomplete lines?

2024-03-24 Thread Gary Johnson
On 2024-03-24, Paul Eggert wrote: > On 2024-03-24 06:06, David G. Pickett wrote: > > Perhaps the man page should warn users that such last lines are ignored. > > They aren't ignored. And the documentation already covers this issue, > on its very first page: > > https://www.gnu.org/software/grep/

bug#66434: grep recently shows the filename with -o , but it shouldn't.

2023-10-10 Thread Gary Johnson
On 2023-10-10, Joerg M. Sigle wrote: > Hello GNU grep team > > I have grep (GNU grep) 3.6 on a Debian / Devuan Linux system. > > Recently I noticed that when using the -o switch, grep also shows > the filename for each hit in front of the desired output, and > a ":" as separator. > IIRC this was

bug#59639: Is this a bug?

2022-11-27 Thread Gary Johnson
On 2022-11-27, Klaus Dittrich wrote: > Given file.txt with three lines: > > /usr/local/lib/gdk-pixbuf-2.0 > empty > /usr/local/lib/libgd2 > > When I do: > > grep gdk file.txt > this results in : /usr/local/lib/gdk-pixbuf-2.0 > > Which looks ok for me. > > When I do: > > grep gdk* file.txt >

bug#57604: [ef]grep usage -> POSIXLY_CORRECT?

2022-09-07 Thread Gary Johnson
On 2022-09-07, Simon Josefsson via Bug reports for GNU grep wrote: > Personally, I'd rather have tools exit with an error code on invalid > uses rather than issuing warning messages. The warning messages are merely annoying. Returning a non-zero exit status would break scripts, and in many cases

bug#57604: [ef]grep usage -> POSIXLY_CORRECT?

2022-09-07 Thread Gary Johnson
On 2022-09-07, Simon Josefsson via Bug reports for GNU grep wrote: > On the other hand, it seems your main problem here is the warning: and I > agree that is annoying and should be fixed. There doesn't seem to be > any way to disable it now? It would be nice to fix that. > > I think the simples

bug#56453: Bug reports

2022-07-08 Thread Gary Johnson
On 2022-07-08, GUI via Bug reports for GNU grep wrote: > I'm a beginner for Linux. > Today, when I was learning the grep command, I used the man > command to check its manual and found a suspicious point.In its > DESCRIPTION,it says "grep searches for PATTERN in each FILE. > A FILE of “-” st

bug#55641: Using colours with grep

2022-05-28 Thread Gary Johnson
On 2022-05-28, goncholden wrote: > I was trying to change the colours used for matching temporarily. > But GREP_COLORS is global in nature. An environment variable such as GREP_COLORS set by itself on the command line persists in the environment after it has been set. An environment variable set

bug#55641: Using colours with grep

2022-05-26 Thread Gary Johnson
On 2022-05-26, Paul Eggert wrote: > On 5/25/22 13:48, goncholden via Bug reports for GNU grep wrote: > >Have been using grep to colour the filename printed by tail using > >grep, by setting GREP_COLOR.  However the setting does not work > >with GREP_COLORS. > > > >Additionally, I could not set colo

bug#36612: Expand "no" options

2022-03-21 Thread Gary Johnson
On 2019-07-11, Steven Penny wrote: > Grep does not have a way to disable "-i", "-n" or "-r" options. Those options > could look like this: > >-N, --no-line-number >-O, --no-ignore-case >-S, --no-recursive > > The single letter choices are not ideal, but "-I" and "-R" were already take

bug#54174: (MacOS Monterey 12.2.1: zsh): grep "string" * is interpreted as grep -V when directory has a filename "-Vfilename.ext"

2022-02-26 Thread Gary Johnson
On 2022-02-26, Marja Koivunen wrote: > I had a directory with filenames that started with “-“ > > doing grep on that directory for a “string" did not find anything > although “string was on some of the files” > > grep just kept repeating something … FreeBSD > > Finally, (with some help) I unders

bug#49983: grep-3.6.27-20b4 tests fail on Cygwin

2021-08-11 Thread Gary Johnson
On 2021-08-10, Paul Eggert wrote: > On 8/10/21 4:21 PM, Gary Johnson wrote: > >$ src/grep --file=in in >out > >$ echo $? > >1 > >$ od -t o1 in > >000 360 220 220 205 012 > >005 > >$ cmp in out > >cmp: EOF on out which is empty >

bug#49983: grep-3.6.27-20b4 tests fail on Cygwin

2021-08-10 Thread Gary Johnson
On 2021-08-10, Paul Eggert wrote: > Here is a shell transcript on my platform. Can you compare it to what > happens on your platform? I am guessing that the first 'echo $?' > outputs something different but would like to know what it is. Plus > any other differences. > > $ export LC_ALL=en_US.UTF-

bug#49983: grep-3.6.27-20b4 tests fail on Cygwin

2021-08-10 Thread Gary Johnson
On 2021-08-10, Paul Eggert wrote: > On 8/10/21 8:54 AM, Gary Johnson wrote: > >The log is pretty big. Would you like it posted here? > > It'd be helpful to see tests/surrogate-pair.log. If it's long perhaps > you could compress it and attach the compressed version to

bug#49983: grep-3.6.27-20b4 tests fail on Cygwin

2021-08-10 Thread Gary Johnson
I built grep-3.6.27-20b4 on a machine running up-to-date Cygwin 3.2.0 and Windows 10 Enterprise Version 10.0.18363 Build 18363. Running "make check" resulted in the following summary. Testsuite summary for GNU gre

bug#41262: Weird behavior with grep regex

2020-05-14 Thread Gary Johnson
On 2020-05-14, loic.tregouet wrote: > Hi, > > I've reproduced a strange behaviour of grep command when a file > name of a single letter is present in current directory . > > $ echo a | grep [a-z] > a > $ touch t > $ echo a | grep [a-z] > $ rm t > $ echo a | grep [a-z] > a > $ > > > Any idea ?

bug#39582: --include only works with -r

2020-02-12 Thread Gary Johnson
On 2020-02-12, Fernando Roa wrote: > this does not work > grep yvertohor --include={*.R,*.Rmd} Did you mean to follow that with an asterisk: grep yvertohor --include={*.R,*.Rmd} * Otherwise, grep is waiting for text to appear on stdin. Without -r, you have to give grep a list of file(s) to

bug#35960: grep execution hagns and does not display any output

2019-05-28 Thread Gary Johnson
On 2019-05-28, Victor Puertas Carreto wrote: > Dear gnu team, > > I do not receive any output when executing the following grep > command: > $ grep -H get_excel_report.py > > I checked the usage of the command (see field attached > grepHelp.jpg). No information is displayed after the execution.

bug#24941: Early termination bug in grep 2.26

2016-11-13 Thread Gary Johnson
There was some recent discussion on the vim_dev list of a failure to update a Vim package which was found to be due to an update of grep from 2.25 to 2.26. The details of the grep behavior are discussed here: https://www.linuxquestions.org/questions/slackware-14/pkgtools-grep-bug-in-slackware[64]

bug#22656: How to grep two patterns in a line with correct coloring?

2016-02-13 Thread Gary Johnson
On 2016-02-13, Peng Yu wrote: > Hi, > > I know that I can use this to grep two patterns. But it can not > highlight both patterns. > > grep word1 FILE | grep word2 This seems to work: grep --color=always word1 FILE | grep word2 Regards, Gary

bug#21700: new snapshot available: grep-2.21.78-7da30

2015-10-22 Thread Gary Johnson
On 2015-10-21, Jim Meyering wrote: > On Wed, Oct 21, 2015 at 1:09 PM, Gary Johnson wrote: > > On 2015-10-18, Jim Meyering wrote: > >> > I built the snapshot on two systems, a fairly old one running Ubuntu > >> > 10.04.4 and a newer one running an up-to-date Li

bug#21700: new snapshot available: grep-2.21.78-7da30

2015-10-21 Thread Gary Johnson
On 2015-10-22, Norihiro Tanaka wrote: > On Wed, 21 Oct 2015 13:09:14 -0700 > Gary Johnson wrote: > > > I also built the snapshot successfully on a Fedora 17 system that I > > use for real work. I just ran a performance test, FWIW. I searched > > recursively in o

bug#21700: new snapshot available: grep-2.21.78-7da30

2015-10-21 Thread Gary Johnson
On 2015-10-18, Jim Meyering wrote: > > I built the snapshot on two systems, a fairly old one running Ubuntu > > 10.04.4 and a newer one running an up-to-date Linux Mint 17.2. > > 'make check' reported the same two failures on both: > > > >XFAIL: backref-alt > >XFAIL: triple-backref > > Tha

bug#21700: new snapshot available: grep-2.21.78-7da30

2015-10-18 Thread Gary Johnson
On 2015-10-17, Jim Meyering wrote: > I want to release grep-2.22 in just a couple of days. > This release is motivated largely by the discovery that there has > been a bug in versions 2.19, 2.20 and 2.21 that made grep mistakenly > print some lines that did not match. However, there have also been