Issue #2193 has been updated by luke.

Status changed from Needs design decision to Accepted
Target version changed from unplanned to 0.26.0

I'm fine with this (and it's customer work, so I'll get it done in the next 
release).
----------------------------------------
Bug #2193: Exec's "command" parameter should accept lists in addition to strings
http://projects.reductivelabs.com/issues/2193

Author: grim_radical
Status: Accepted
Priority: Normal
Assigned to: luke
Category: exec
Target version: 0.26.0
Complexity: Unknown
Affected version: 0.25.0
Keywords: 


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://reductivelabs.com/redmine/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
-~----------~----~----~----~------~----~------~--~---

Reply via email to