This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: binutils without a date is not handled properly without GNU sed


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[45] 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.


Phil

-- 
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]