summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/exec/shell.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/provider/exec/shell.rb')
-rw-r--r--lib/puppet/provider/exec/shell.rb13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/puppet/provider/exec/shell.rb b/lib/puppet/provider/exec/shell.rb
index 98f309e8f..ad2171005 100644
--- a/lib/puppet/provider/exec/shell.rb
+++ b/lib/puppet/provider/exec/shell.rb
@@ -3,8 +3,17 @@ Puppet::Type.type(:exec).provide :shell, :parent => :posix do
confine :feature => :posix
- desc "Execute external binaries directly, on POSIX systems.
-passing through a shell so that shell built ins are available."
+ desc <<-EOT
+ Passes the provided command through `/bin/sh`; only available on
+ POSIX systems. This allows the use of shell globbing and built-ins, and
+ does not require that the path to a command be fully-qualified. Although
+ this can be more convenient than the `posix` provider, it also means that
+ you need to be more careful with escaping; as ever, with great power comes
+ etc. etc.
+
+ This provider closely resembles the behavior of the `exec` type
+ in Puppet 0.25.x.
+ EOT
def run(command, check = false)
command = %Q{/bin/sh -c "#{command.gsub(/"/,'\"')}"}