pcp
[Top] [All Lists]

Re: [pcp] dbpmda permissions

To: Nathan Scott <nathans@xxxxxxxxxx>, Martins Innus <minnus@xxxxxxxxxxx>
Subject: Re: [pcp] dbpmda permissions
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Wed, 17 Dec 2014 09:57:51 +1100
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1948099581.19288578.1418765866184.JavaMail.zimbra@xxxxxxxxxx>
References: <548F5468.9040209@xxxxxxxxxxx> <890347474.18326939.1418682302877.JavaMail.zimbra@xxxxxxxxxx> <54908A81.5000100@xxxxxxxxxxx> <1948099581.19288578.1418765866184.JavaMail.zimbra@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
On 17/12/14 08:37, Nathan Scott wrote:
...
I don't think so, from a look at the src/dbpmda/src/lex.l definition
of a STRING token.  I think it would be a straightforward (+ useful)
extension to allow single-quotes within double-quoted strings, and
vice-versa ... any thoughts there Ken?

dbpmda> store hotproc.control.config "uname == \"root\""
                                       ^ at or near here
Error: Unrecognized command
Type 'help' for a list of commands.

I made a quick and dirty change to lex.l and this

dbpmda> store hotproc.control.config 'uname == "root"'

seems to parse OK.

No backslash escaping, but string delimiters are " or '
Would that suffice?

Of course this also works, but might confuse the PMDA

dbpmda> store hotproc.control.config "uname == 'root'"

<Prev in Thread] Current Thread [Next in Thread>