Re: [PATCH 0/8] Stop using obsoleted egrep/fgrep

2022-06-24 Thread Iain Sandoe via Gcc-patches
> On 24 Jun 2022, at 17:09, Joseph Myers wrote: > > On Fri, 24 Jun 2022, Andrew Pinski via Gcc-patches wrote: > >> Though I do find that -E/-F have been part of the POSIX standard since >> at least 2004 which is interesting. > > grep -E and -F are already defined, and egrep and fgrep marked

Re: [PATCH 0/8] Stop using obsoleted egrep/fgrep

2022-06-24 Thread Joseph Myers
On Fri, 24 Jun 2022, Andrew Pinski via Gcc-patches wrote: > Though I do find that -E/-F have been part of the POSIX standard since > at least 2004 which is interesting. grep -E and -F are already defined, and egrep and fgrep marked as obsolescent, in the 1992/1993 edition of POSIX.2. -- Joseph

Re: [PATCH 0/8] Stop using obsoleted egrep/fgrep

2022-06-24 Thread Rainer Orth
Hi Fangrui, > FWIW: glibc recently got the grep -E change and the solution is to use > plain grep -E, without $EGREP things. > Isn't setting PATH a good workaround if Solaris has the problem? > > https://sourceware.org/pipermail/libc-alpha/2022-June/139420.html while it's possible, the $PATH solu

Re: [PATCH 0/8] Stop using obsoleted egrep/fgrep

2022-06-24 Thread Andrew Pinski via Gcc-patches
On Fri, Jun 24, 2022 at 1:27 AM Fangrui Song via Gcc-patches wrote: > > On 2022-06-24, Rainer Orth wrote: > >Hi Xi, > > > >> On Fri, 2022-06-24 at 09:24 +0200, Rainer Orth wrote: > >> > >>> please remember that there's a world outside of GNU grep: e.g. Solaris > >>> /bin/grep doesn't support grep

Re: [PATCH 0/8] Stop using obsoleted egrep/fgrep

2022-06-24 Thread Fangrui Song via Gcc-patches
On 2022-06-24, Rainer Orth wrote: Hi Xi, On Fri, 2022-06-24 at 09:24 +0200, Rainer Orth wrote: please remember that there's a world outside of GNU grep: e.g. Solaris /bin/grep doesn't support grep -E (while /usr/xpg4/bin/grep does), so unconditionally replacing egrep with grep -E in several p

Re: [PATCH 0/8] Stop using obsoleted egrep/fgrep

2022-06-24 Thread Rainer Orth
Hi Xi, > On Fri, 2022-06-24 at 09:24 +0200, Rainer Orth wrote: > >> please remember that there's a world outside of GNU grep: e.g. Solaris >> /bin/grep doesn't support grep -E (while /usr/xpg4/bin/grep does), so >> unconditionally replacing egrep with grep -E in several places is >> likely >> to b

Re: [PATCH 0/8] Stop using obsoleted egrep/fgrep

2022-06-24 Thread Xi Ruoyao via Gcc-patches
On Fri, 2022-06-24 at 09:24 +0200, Rainer Orth wrote: > please remember that there's a world outside of GNU grep: e.g. Solaris > /bin/grep doesn't support grep -E (while /usr/xpg4/bin/grep does), so > unconditionally replacing egrep with grep -E in several places is > likely > to break at least th

Re: [PATCH 0/8] Stop using obsoleted egrep/fgrep

2022-06-24 Thread Rainer Orth
Hi Xi, > egrep and fgrep have been deprecated for a long time, and the next grep > release will emit a warning if egrep or fgrep is invoked: > > https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a951562 > > To prevent us from a lot of these warnings in the future, we should stop > using egrep

[PATCH 0/8] Stop using obsoleted egrep/fgrep

2022-06-23 Thread Xi Ruoyao via Gcc-patches
egrep and fgrep have been deprecated for a long time, and the next grep release will emit a warning if egrep or fgrep is invoked: https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a951562 To prevent us from a lot of these warnings in the future, we should stop using egrep and fgrep. These pa