+1

On 7/30/2010 6:18 AM, Daniel Pittman wrote:
James Turnbull<[email protected]>  writes:
Richard Crowley wrote:
On Thu, Jul 29, 2010 at 3:23 PM, Greg Graf<[email protected]>  wrote:

[...]

I saw the same thing happen with a few for-loops and had to wrap them
up in /bin/sh -c '...' for 2.6.  Now that I look for it, I can't find
anything about this behavior change in the release notes for 2.6.  Was
it coincidental that it ever worked?

See:

http://projects.puppetlabs.com/issues/4288
http://projects.puppetlabs.com/issues/4299

For some history and comments on this.  We'd welcome some input into
what you think should be safe and expected behaviour here.

If this is a "voting" matter, let me put in a vote for passing a simple string
to the shell, and passing an array direct to exec, which is consistent with
the use of 'system' style commands in a whole bunch of sysadmin scripting
languages.

Eg, this:

    exec { "foo": command =>  ['/bin/ls', '|' 'foo'] }

will pass '|' 'foo' to the ls command, compared to:

    exec { "foo": command =>  "/bin/ls | foo" }

...which passes it to the default system shell.

         Daniel


--
dasz.at OG              Tel: +43 (0)664 2602670     Web: http://dasz.at
Klosterneuburg                                         UID: ATU64260999

       FB-Nr.: FN 309285 g          FB-Gericht: LG Korneuburg

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to