bug-gnu-utils
[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: Paolo Bonzini
Subject: Re: sed --posix does not catch incomplete arguments
Date: Mon, 5 Jul 2010 12:18:24 +0200

On Sun, Jul 4, 2010 at 18:36, Bruno Haible <address@hidden> wrote:
> Hi Paolo,
>
> Eric Blake wrote on 2010-06-17:
>> >> passing the script '1{' to option -e is also invalid.
>> ... 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, I'm asking: Can GNU 'sed' be changed so that in --posix mode it rejects
> either all incomplete fragments, or at least those that currently represent
> a real portability problem (namely, those which end in a backslash)? [1][2]

The latter can be done.

Paolo



reply via email to

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