[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: depcomp: support newer HP compilers
From: |
Zack Weinberg |
Subject: |
Re: depcomp: support newer HP compilers |
Date: |
Tue, 3 Jan 2006 14:53:03 -0500 |
User-agent: |
Mutt/1.5.10i |
On Tue, Jan 03, 2006 at 01:01:52PM +0100, Ralf Wildenhues wrote:
> Hi Zack, Alexandre,
>
> Sorry for a very late comment to this old thread; I now have access to
> such a system.
For myself, I have moved on and no longer have access to any HP systems,
but it is good to hear that someone is following up on this patch. I have
only one comment:
> > > Is the leading `;' important?
> >
> > You mean the one immediately after the '{'? Yes, that has to be there, or
> > sed will give syntax errors.
>
> I cannot reproduce the syntax errors (on B.11.23);
> sed -ne '2,${s/^ *//; s/ \\*$//; s/$/:/; p;}'
>
> seems to work just fine (note I changed the first command to `s/^ *//').
... This may well work with whichever sed you've got on your B.11.23.
I see that NetBSD 2.0 sed, which is the only sed I can get at right
now, is fine with a similar construct. However, I assure you,
older sed implementations will barf if there is no semicolon
immediately after the open brace. (The brace is treated as a
command, and must have a semicolon to separate it from the next
command in the -e expression.) Please leave it in.
zw
Re: depcomp: support newer HP compilers, Alexandre Duret-Lutz, 2006/01/03