help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quoting and parentheses in ExecResult?


From: Mark Burgess
Subject: Re: quoting and parentheses in ExecResult?
Date: Wed, 17 Aug 2005 07:56:58 +0200

But this does not have balanced quotes or parentheses, so it doesn't
make much sense to me. You can't have a semi-quoted exoression
in any language..

M

On Wed, 2005-08-17 at 08:04 +1200, Steve Wray wrote:
> Eric Sorenson wrote:
> > On Mon, 15 Aug 2005, Steve Wray wrote:
> > 
> > 
> >>For reference, the original, commandline looks like this:
> >>/bin/echo baz|sed -e "s/^\(.*\)$/&.conf/g"
> >>
> >>My question, then, is how (apart from using an actual script in a file)
> >>does one quote and escape such an expression to fit it into ExecResult?
> > 
> > 
> > To short-circuit cfengine trying to expand this, instead of trying 
> > a literal $ you can use the $(dollar) construct.
> 
> hah, no, I tried that and interestingly -- very interestingly -- had
> *exactly* the same output as when using a bare dollar sign.
> 
> Well, when I say *exactly* I mean:
> 
> <$(dollar)/&.conf/g\"")>
> 
> :)
> 
> Oh and Mark, this is with the version I d/l'd last night (the hourly
> image, I see it as "2.1.16a")
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-cfengine





reply via email to

[Prev in Thread] Current Thread [Next in Thread]