[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed patch for POSIX conformance with /[]/
From: |
Paul Eggert |
Subject: |
Re: sed patch for POSIX conformance with /[]/ |
Date: |
10 Jan 2004 01:31:14 -0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
"Paolo Bonzini" <address@hidden> writes:
> > For example, if there's a need to disable all GNU
> > sed extensions to POSIX, this could be done by adding a --posix-only
> > option, or perhaps a POSIX_ONLY environment variable.
>
> Yes, I'll add --posix.
>
> > I don't know of any precedent for this in other GNU utilities, but
> > I'll CC: this to bug-gnu-utils to see if anyone else has a comment on
> > the environment variable or option name.
>
> gawk has --posix IIRC.
But the GNU coding standards suggest "--posix" as an alias for
POSIXLY_CORRECT. I wouldn't use "--posix" to mean something different.
To contribute to the confusion, gawk historically also has misused
POSIXLY_CORRECT and --posix to mean "disable all extensions to POSIX,
even the upward-compatible extensions". I have sent in a bug report
about this.