Re: [9fans] Help with plumbing rules

2013-11-06 Thread Alexander Sychev
Hi, Question 1: a flag '-d' can be useful a bit. Question 2: $file is filled when you check arg isfile $1 Question 3: I think, the problem is you have to match exact full string is sent to plumber. This variant is working: type is text data matches 'File

Re: [9fans] Help with plumbing rules

2013-11-06 Thread Mark van Atten
PS: Once I get this working I'll tackle the diagnostic messages I get when compiling Java code using maven (not my choice). They look like [error] /home/pcanning/src/java/test/PerfTest.java:[66,1] error: reached end of file while parsing For lacheck, a Latex checker, I have this in my

Re: [9fans] acme/sam language question

2013-11-06 Thread Rudolf Sykora
On 31 October 2013 20:24, Rudolf Sykora rudolf.syk...@gmail.com wrote: On 31 October 2013 16:49, Friedrich Psiorz f.psi...@gmx.de wrote: It works for me, but I found another inconsistency. I tried it on p9p and 9vx, both in acme and sam. /A/+#0;/B/-#0 g/CC/ s/CC/DD/g p Well. If I use

Re: [9fans] acme/sam language question

2013-11-06 Thread Micah Stetson
What if you specify the address twice like this: /A/+#0;/B/-#0g/CC/ s/CC/DD/g /A/+#0;/B/-#0p That doesn't work if A and B occur more than once in the file or if DD matches A or B. But otherwise, it seems to work for me. Micah On Nov 6, 2013, at 10:47 AM, Rudolf Sykora wrote: On 31 October

Re: [9fans] acme/sam language question

2013-11-06 Thread Mark van Atten
I write the script like this: /A/+#0;/B/-#0 { g/CC/ s/CC/DD/g } p Mark. On Wed, Nov 6, 2013 at 7:47 PM, Rudolf Sykora rudolf.syk...@gmail.com wrote: On 31 October 2013 20:24, Rudolf Sykora rudolf.syk...@gmail.com wrote: On 31 October 2013 16:49, Friedrich Psiorz f.psi...@gmx.de wrote: It