From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) From: Jeff Sickel In-Reply-To: Date: Tue, 10 Aug 2010 08:58:23 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <2D2ED7A1-CDF8-47F2-9F64-0CE08E294CFF@corpus-callosum.com> References: <09DB2D65-A18A-493E-9886-2D5D3334F460@corpus-callosum.com> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] regexp metacharacter difficulty inside grap Topicbox-Message-UUID: 46a7886e-ead6-11e9-9d60-3106f5b1d025 It's good to learn new things every day. Grap strips the ')' out, no = need for all that funny sh {} business: if "$1" =3D=3D "#" then { if "$2" =3D=3D "(Yo" then { print sprintf("Yo was %f", yo) yo =3D $3 print sprintf("Yo is %f", yo) } } success! mk Creating t.ps... Yo was 8.579000 Yo is 4.953400 Yo was 4.953400 Yo is 4.953400 Creating t.pdf... Now to find out why the fonts on Plan 9 create nice print outs but = really awkward text inside of PDF files. My theory is that gs is not = stuffing all of the fonts in as it should. On Aug 10, 2010, at 8:41 AM, Rudolf Sykora wrote: > On 10 August 2010 15:10, Federico G. Benavento = wrote: >> this is probably related to the fact that grap(1) is an APE program, >> and sh actually execs sh, not rc... >=20 > see this line: >=20 >>> rc: line 2: token ')': syntax error >=20 > telling that rc is executed. As to why there is the syntax error, as I > wrote couple of hours ago, the reason is that rc tries to execute > /echo 23.45)/ which is syntactically wrong. What is wanted is /echo > '23.45)'/, so that ')' is within aposrophes. >=20 > R >=20 >=20