bug-autoconf
[Top][All Lists]
Advanced

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

Re: sed --posix does not catch incomplete arguments


From: Ralf Wildenhues
Subject: Re: sed --posix does not catch incomplete arguments
Date: Sat, 19 Jun 2010 03:57:17 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Bruno Haible writes:
> > The Austin group
> > take this morning is that allowing -e fragments is a useful addition for
> > the next revision of the standard, but that there are still
> > implementations today (like AIX) that don't support it now, so it will
> > be several years before sed -e 1{ -e } is standardized.
> 
> So, meanwhile, let's document the portability problem in the Autoconf
> manual.
> 
> Here's what I see on Solaris 10:
> 
>   $ echo a | sed -n -e 'i\' -e 0
>   Unrecognized command: 0

JFTR, while i\ is a problem for some seds, I don't find any sed that rejects
  sed -e 1{ -e }

among IRIX 6.5, AIX 5.1, Tru64 5.1D, BSDs, Solaris 2.6 or newer.  The problem
seems to be relevant only for scripts ending trailing backslash (which is far
less often a problem in sed scripts).

Cheers,
Ralf




reply via email to

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