bug#30525: Unexpected matches for input data from a patch file

2018-02-19 Thread SF Markus Elfring
Hello, I have tried the command “`printf -- '-\tif\n'|grep -E '^-\s+[^i]'`” out with the version “3.1-1.4”. I get no match which I expect in this use case. But I wonder why matches are displayed when if lines are passed from a patch file instead. Should unwanted characters be also excluded by suc

bug#30525: Unexpected matches for input data from a patch file

2018-02-28 Thread SF Markus Elfring
> I assume it's because the if-lines match the regular expression in question, > which is as it should be. I got other expectations for a desired software behaviour. I should take possessive quantifiers (or atomic grouping) better into account. > If not, could you give a self-contained example

bug#30525: Unexpected matches for input data from a patch file

2018-02-28 Thread SF Markus Elfring
> and this is the correct answer. This view is appropriate for the core functionality. >> * Does the tool “grep” output any extra colour information also for >>    matched tab characters? > > Not with that test case, no. I am still unsure. > There is no color information at all. I suggest t

bug#30525: Unexpected matches for input data from a patch file

2018-03-02 Thread SF Markus Elfring
> I believe there are actually several different issues here, Yes. - I agree. > perhaps it's worth stating them explicitly to ensure we're > on the same page. I thank you for your very detailed answer. > Grep's default coloring is red text and default background. This setting can be fine in