* Jim Meyering wrote on Sun, Oct 05, 2008 at 07:42:45PM CEST: > Bruno Haible <[EMAIL PROTECTED]> wrote: > > > > \> is also not a portable piece of regular expression: not in a basic regex, > > and not in an extended regex. It is a GNU extension. > > It works with Solaris 10's grep, > so maybe it works with some others, too.
FWIW, it fails with several other vendor greps. > Or better still, just use awk. > Then we get alternation back, and can kludge around > the lack of a portable end-of-word abbreviation: In a way, this is all a kludge anyway, because you do not see macro invocations that are only visible through m4 expansion, from other macro files, etc. Only m4 can parse m4. But we all knew that, and still there is the bootstrapping issue ... IMVHO you could just grep without word endings. That's good enough for this script. Cheers, Ralf