On 11/22/14 15:31, Richard L. Hamilton wrote:
> Building on Solaris 11.2 SPARC, per the wiki (i.e. code from git), the
> following sed command never finishes; eventually it could run the disk
> out of space making parser.c arbitrarily large.  Off the top of my head,
> I’m not good enough with sed to see why.  Given the PATH I had set, it
> appears that /usr/xpg4/bin/sed was the version being used.
>
> including in programs/dtcm/server...
> /usr/ccs/bin/yacc -d  parser.y
> sed -e "s/yy/yyy/g" -e "\a# linea D" y.tab.c > parser.c

I was able to reproduce the error. It is indeed a problem of
/usr/xpg4/bin/sed. It adds an endless number of empty lines to the
output. My build normally runs with /usr/bin/sed and then it's ok.
But it should also be possible to express the sed syntax in a way
that both are happy. E.g.:
     sed -e "s/yy/yyy/g" -e "/# line/d" y.tab.c > parser.c
The result is exactly the same.

Best Regards, Ulrich


-- 
Ulrich Wilkens
Email: m...@uwilkens.de


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to