bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

buggy sed on Darwin?


From: Werner LEMBERG
Subject: buggy sed on Darwin?
Date: Sun, 11 Dec 2005 12:34:42 +0100 (CET)

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]