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

bug#30681: What characters are in [[:space:]]?

2018-03-02 Thread Peng Yu
Hi, [[:space:]] includes the following unicode character. http://www.fileformat.info/info/unicode/char/00a0/index.htm $ echo 'a b' | grep 'a[[:space:]]b' a b $ echo 'a b'|xxd : 61c2 a062 0a a..b. Where is this info documented for grep? Are these all the possi

bug#30681: What characters are in [[:space:]]?

2018-03-02 Thread Paul Eggert
On 03/02/2018 09:23 AM, Peng Yu wrote: Where is this info documented for grep? It's not documented for grep because it's not part of grep. It's part of your locale.

bug#30681: What characters are in [[:space:]]?

2018-03-02 Thread Jim Meyering
tags 30681 notabug stop On Fri, Mar 2, 2018 at 2:32 PM, Paul Eggert wrote: > On 03/02/2018 09:23 AM, Peng Yu wrote: >> >> Where is this info documented for grep? > > It's not documented for grep because it's not part of grep. It's part of > your locale. You can check for yourself. In every one o

bug#30686: How to color matched region but also show the nearby context noncolored in characters or words?

2018-03-02 Thread Peng Yu
Hi, I am looking for a feature similar to -A -B -C but not based on lines, but based on characters or even words. Is it possible with the current version of grep? In the following example, I'd like to show the matched region as well as 3 characters before and after it. But the 3 characters before