bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: sed POSIX compatibility regarding '|' in regular expressions


From: Paolo Bonzini
Subject: Re: sed POSIX compatibility regarding '|' in regular expressions
Date: Fri, 15 Dec 2006 13:34:27 +0100
User-agent: Thunderbird 1.5.0.8 (Macintosh/20061025)


I would prefer the goal of 'sed --posix' to be disabling only GNU extensions
that conflict with POSIX, rather than crippling sane semantics for
sequences intentionally left undefined by POSIX.

The purpose that you desire is available through the POSIXLY_CORRECT=1
environment setting. I'm talking about --posix; this is a different thing.

I, for one, wish I had noted earlier that some sed expressions that I was
using were not portable according to POSIX. --posix appears to be made for
this purpose. Like -ansi -pedantic for gcc.

Right.  I fixed this in sed cvs.  I will release 4.1b soon.

Paolo




reply via email to

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