Thou should not quote the body name. --Eystein
On 11/02/2010 04:52 PM, Jean-Noël Rivasseau wrote: > Hello, > > The following (which worked perfectly under 3.0.3) no longer works after > an update to 3.0.5_p1: > > body common control > { > bundlesequence => {"setupPhase"}; > } > > bundle agent setupPhase > { > vars: > "my_result" string => execresult("/bin/echo dada | grep da", "useshell"); > > commands: > "/bin/echo ${my_result}"; > "/bin/echo dada | grep da", contain => "useShell"; > > } > > body contain useShell() > { > useshell => true; > } > > The problem is that "/bin/echo dada | grep da" just echoes 'dada | grep > da', instead of the expected result. Note that the execresult version > works as expected, which is even stranger. > > This breaks all my current code as "useshell" is no longer usable in > commands promises. Shall I raise a bug? Is there a workaround? > > Jean-Noel > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine