bug#39678: POSIXLY_CORRECT removal, and oddball regex doc

2022-05-22 Thread Paul Eggert
On 5/21/22 11:40, Jim Meyering wrote: In my experience, there are many lurking uses of things like '\a', and would like to ease into this gently, so I much prefer your latter approach: warn now, and change grep's exit status later Sounds good. When I started looking into that, I discovered tha

bug#39678: POSIXLY_CORRECT removal, and oddball regex doc

2022-05-21 Thread Jim Meyering
On Sat, May 21, 2022 at 3:05 AM Paul Eggert wrote: > Looking again at grep bug 39678 I noticed > that the bug occurs even when grep is not coloring: > > echo a | grep -oi --color=never '\a' > > This outputs nothing and exits with status 0, which is clearly wrong. Wron

bug#39678: POSIXLY_CORRECT removal, and oddball regex doc

2022-05-21 Thread Paul Eggert
Looking again at grep bug 39678 I noticed that the bug occurs even when grep is not coloring: echo a | grep -oi --color=never '\a' This outputs nothing and exits with status 0, which is clearly wrong. I tracked this down to a bug buried deep in the bowels of glibc