This is the mail archive of the
mailing list for the GCC project.
Re: PATCH: binutils without a date is not handled properly without GNU sed
- From: Phil Edwards <phil at jaj dot com>
- To: rittle at labs dot mot dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 15 May 2003 16:24:17 -0400
- Subject: Re: PATCH: binutils without a date is not handled properly without GNU sed
- References: <200305150608.h4F68GTV090658@latour.rsch.comm.mot.com>
On Thu, May 15, 2003 at 01:08:16AM -0500, Loren James Rittle wrote:
> Ah, what a tasty nugget. The issue is that sed, on some systems
> (OSF1, FreeBSD and Solaris5.7, to name three that were checked and
> all found to have an issue), does not know about \|, as least by
> default (FreeBSD supports an -E flag to switch sed to extended
> regexp). After reading sed(1) on just three systems, I am reminded
> that complex sed patterns are extremely unportable and should be avoided.
GNU sed recently added extended regexp capabilities, but used -r instead.
I love gratuitous incompatability.
> If one wanted to support binutils releases with additional sub-version
> numbers, then replace 1,3 with 1,4 or whatever. Of course, just to
> make life interesting, /usr/bin/sed on Solaris5.7 only supports bounds
> on one-character REs (silently ignored when applied to more complex
> atoms; whereas /usr/xpg4/bin/sed properly handles bounds on complex atoms).
/usr/bin/foo should never be used under Solaris if /usr/xpg4/bin/foo exists
as an alternative. ("xpg4" is derived from an Ancient Greek verb meaning,
"to not suck".) I might make a push for the toplevel configure/makefile
to detect Solaris and prepend that directory to the path.
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams