Mark Burgess wrote:

That's because the quotes disappear when they are not escaped.
So this works as it should




VarPart = ( ReturnsZero("/bin/sh -c \"df -l | grep \'^/dev\' | awk
\'{print $NF}\' | grep -q \'^/var$\'\"") )


Ahh very nice. I didnt try escaping evey quote within the command. I just test this and verified that it does work on 2.1.18. The df -l output is no longer being shown.

Thanks a lot for the help and all your hard work!


--

  Brandon Evans

"I have a theory that the truth is never told during the nine-to-five hours."
-Hunter S. Thompson


_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to