Sha256: 78e7735403bc4ef737bf4cc2d8ab97bff79097fc11648584d7e02e51026da190

Contents?: true

Size: 1.45 KB

Versions: 22

Compression:

Stored size: 1.45 KB

Contents

U:RDoc::AnyMethod[iI"sh:EFI"FileUtils#sh;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"PRun the system command +cmd+.  If multiple arguments are given the command ;TI"Lis run directly (without the shell, same semantics as Kernel::exec and ;TI"Kernel::system).;To:RDoc::Markup::BlankLineo;
;	[I"MIt is recommended you use the multiple argument form over interpolating ;TI"Luser input for both usability and security reasons.  With the multiple ;TI"Kargument form you can easily process files with spaces or other shell ;TI"Mreserved characters in them.  With the multiple argument form your rake ;TI"Btasks are not vulnerable to users providing an argument like ;TI"<code>; rm # -rf /</code>.;T@o;
;	[I"NIf a block is given, upon command completion the block is called with an ;TI"HOK flag (true on a zero exit status) and a Process::Status object. ;TI"NWithout a block a RuntimeError is raised when the command exits non-zero.;T@o;
;	[I"Examples:;T@o:RDoc::Markup::Verbatim;	[I"sh 'ls -ltr'
;TI"
;TI"!sh 'ls', 'file with spaces'
;TI"
;TI",# check exit status after command runs
;TI"*sh %{grep pattern file} do |ok, res|
;TI"  if ! ok
;TI"?    puts "pattern not found (status = #{res.exitstatus})"
;TI"  end
;TI"end;T:@format0:
@fileI"lib/rake/file_utils.rb;T:0@omit_headings_from_table_of_contents_below000[I"(*cmd, &block);T@-FI"FileUtils;FcRDoc::NormalModule00

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
sb_prime_table-0.1.1 vendor/bundle/ruby/2.4.0/doc/rake-12.3.1/ri/FileUtils/sh-i.ri
sb_prime_table-0.1.0 vendor/bundle/ruby/2.4.0/doc/rake-12.3.1/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.8.3 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.8.2 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.8.0 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.7.0 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.6.0 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.4.0 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.3.0 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.2.0 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.1.9 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.1.8 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.1.7 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.1.6 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.1.5 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.1.4 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.1.3 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.1.2 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.1.1 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri
logstash-input-remote_proc-0.1.0 vendor/bundle/jruby/1.9/doc/rake-11.3.0/ri/FileUtils/sh-i.ri