[I'm writing this here so that the information can be included into
autoconf.info in case it is really a bug.]
Consider this pipeline
makeinfo --version | sed 's/^.* \([^ ]\+\)$/\1/;1q'
with GNU sed 4.0.9 I get
4.8
but with the (BSD) sed from OS X I get
makeinfo (GNU texinfo) 4.8
I wonder whether this is a BSD sed bug or whether I'm doing something
wrong.
BTW,
strings /usr/bin/sed
shows
$FreeBSD: src/usr.bin/sed/compile.c,v 1.22 2002/07/30 14:07:30 tjr Exp $
but the problem might also be in Darwin's regex library.
Werner