Issue #2193 has been updated by Philip Potter.
I don't understand how this bug is a duplicate of 4884. 4884 is about running exec through a shell, with all the quoting and globbing that gets you. This ticket is about avoiding the shell completely. In anycase, I'm happy to work on a patch to provide this functionality, since this is something I would really like to see in puppet. ---------------------------------------- Bug #2193: Exec's "command" parameter should accept lists in addition to strings https://projects.puppetlabs.com/issues/2193#change-71122 Author: Deepak Giridharagopal Status: Duplicate Priority: Normal Assignee: Category: exec Target version: Affected Puppet version: 0.25.0 Keywords: Branch: Currently, "exec" executes its "command" by passing a string to Kernel#exec, which subjects the command to shell-expansion. There are many use cases where the user knows the exact command they wish to execute, and does not want the shell involved at all in the execution (say, for example, you're trying to pass an argument to a command that has weird characters in it that the shell would normally expand out). Exec's "command" param should accept a list as input, where the list follows the format accepted by Kernel#exec ("If multiple arguments are given, the second and subsequent arguments are passed as parameters to command with no shell expansion."). I've attached a patch against 0.25 HEAD (minimally tested)...hopefully that can be a starting point for development. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs?hl=en.
