Atom Powers wrote:
> On 3/21/06, Jim Wight <[EMAIL PROTECTED]> wrote:
> >
> > How about
> > usera = ( ReturnsZero(/bin/sh -c ${quote}/usr/bin/getent passwd usera
> > >/dev/null${quote}) )
> >
>
> Add to trap errors for truely silent operation: " ... >/dev/null 2>&1 ..."
I would recommend not using complicated quotation in ReturnsZero or
ExecResult (any place where you find the need to use /bin/sh -c). It is
hard to read and brittle (the parser has changed the way quotation works
in the past). Instead, make a module.
Best,
Brendan
--
Senior System Administrator
The University of Chicago
Department of Computer Science
http://www.cs.uchicago.edu/people/brendan
http://praksys.blogspot.com/
_______________________________________________
Help-cfengine mailing list
[email protected]
http://cfengine.org/mailman/listinfo/help-cfengine