It's good to learn new things every day.  Grap strips the ')' out, no need for 
all that funny sh {} business:

                if "$1" == "#" then {
                        if "$2" == "(Yo" then {
                                print sprintf("Yo was %f", yo)
                                yo = $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 <[email protected]> wrote:
>> this is probably related to the fact that grap(1) is an APE program,
>> and sh actually execs sh, not rc...
> 
> see this line:
> 
>>>       rc: line 2: token ')': syntax error
> 
> 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.
> 
> R
> 
> 


Reply via email to