Hmm, can someone reply about that?

Jean-Noel

On Fri, Nov 27, 2009 at 10:48 AM, Jean-Noël Rivasseau <elva...@gmail.com>wrote:

> Hello,
>
> I wanted to use the Bash syntax $(mycommand) to launch a subshell in a
> returnszero promise. So I coded it as:
>
> "MyClass" expression => returnszero("/usr/bin/test 0 -eq
> ${const.dollar}(somecommand argument1 argument2)", "useshell");
>
> Strangely, it does not work, cf-engine refuses to launch this command,
> although it really should. Note that using the older and deprecated ` `
> backtick syntax works, I am using that right now as a workaround.
>
> I am pretty sure this is a bug in the cf-engine parser somewhere (I think
> cf-engine recognizes the parenthesis as an internal variable, like it would
> do with $(blabla) ). Do you have a bugzilla to report this kind of things?
>
> If it's not a bug, can someone explain me why I am seeing this behavior?
>
> --
> Jean-Noël Rivasseau
>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to