ÿØÿà JFIF ÿÛ „ ( %!1!%)+//.383,7(-.+
-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ ¥2" ÿÄ ÿÄ J ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ ÿÄ * !1AQa‘"2q3±ð#b¡ÿÚ ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁTÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßwpŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
?>
.........................................
.............................................................................
ÿØÿà JFIF ÿÛ „
(
%!1!%)+//.383,7(-.+
-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ ¥2" ÿÄ
ÿÄ J ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ
ÿÄ * !1AQa‘"2q3±ð#b¡ÿÚ
? ¼QxJQaÍuò¸Zö
Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁTÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßwpŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
?>
.........................................
.............................................................................
????????????????????????????????????
????????????????????????????????????
ÿØÿà JFIF ÿÛ „ ( %!1!%)+//.383,7(-.+
-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ ¥2" ÿÄ ÿÄ J ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ ÿÄ * !1AQa‘"2q3±ð#b¡ÿÚ ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁTÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßwpŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
?>
.........................................
.............................................................................
ÿØÿà JFIF ÿÛ „
(
%!1!%)+//.383,7(-.+
-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ ¥2" ÿÄ
ÿÄ J ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ
ÿÄ * !1AQa‘"2q3±ð#b¡ÿÚ
? ¼QxJQaÍuò¸Zö
Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁTÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßwpŽF|È¥ù®häðÍѶ¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
?>
.........................................
.............................................................................
????????????????????????????????????
????????????????????????????????????
U:RDoc::AnyMethod[iI"capture2e:ETI"Open3::capture2e;TT:publico:RDoc::Markup::Document:@parts[/o:RDoc::Markup::Paragraph; [I"/Basically a wrapper for Open3.popen3 that:;To:RDoc::Markup::BlankLine o:RDoc::Markup::List:
@type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o;
; [I"OCreates a child process, by calling Open3.popen3 with the given arguments ;TI"?(except for certain entries in hash +options+; see below).;To;;0; [o;
; [I"HReturns as string +stdout_and_stderr_s+ the merged standard output ;TI"-and standard error of the child process.;To;;0; [o;
; [I";Returns as +status+ a Process::Status object ;TI":that represents the exit status of the child process.;T@o;
; [I">Returns the array [stdout_and_stderr_s, status]:;T@o:RDoc::Markup::Verbatim; [I"Astdout_and_stderr_s, status = Open3.capture2e('echo "Foo"')
;TI"<# => ["Foo\n", #]
;T:@format0o;
; [I"LLike Process.spawn, this method has potential security vulnerabilities ;TI"%if called with untrusted input; ;TI"Psee {Command Injection}[rdoc-ref:command_injection.rdoc@Command+Injection].;T@o;
; [I"KUnlike Process.spawn, this method waits for the child process to exit ;TI"4before returning, so the caller need not do so.;T@o;
; [I"HIf the first argument is a hash, it becomes leading argument +env+ ;TI""in the call to Open3.popen3; ;TI"Isee {Execution Environment}[rdoc-ref:Process@Execution+Environment].;T@o;
; [I"LIf the last argument is a hash, it becomes trailing argument +options+ ;TI""in the call to Open3.popen3; ;TI"Asee {Execution Options}[rdoc-ref:Process@Execution+Options].;T@o;
; [I""The hash +options+ is given; ;TI"=two options have local effect in method Open3.capture2e:;T@o;;
;;[o;;0; [o;
; [I"IIf entry options[:stdin_data] exists, the entry is removed ;TI"Band its string value is sent to the command's standard input:;T@o;; [I"/Open3.capture2e('tee', stdin_data: 'Foo')
;TI":# => ["Foo", #]
;T;0o;;0; [o;
; [I"JIf entry options[:binmode] exists, the entry is removed and ;TI"1the internal streams are set to binary mode.;T@o;
; [I":The single required argument is one of the following:;T@o;;
;;[o;;0; [o;
; [I"'+command_line+ if it is a string, ;TI"Fand if it begins with a shell reserved word or special built-in, ;TI"2or if it contains one or more metacharacters.;To;;0; [o;
; [I"+exe_path+ otherwise.;T@o;
; [I"#Argument +command_line+;T@o;
; [I"P\String argument +command_line+ is a command line to be passed to a shell; ;TI"Nit must begin with a shell reserved word, begin with a special built-in, ;TI" or contain meta characters:;T@o;; [I"LOpen3.capture2e('if true; then echo "Foo"; fi') # Shell reserved word.
;TI"<# => ["Foo\n", #]
;TI"AOpen3.capture2e('echo') # Built-in.
;TI"9# => ["\n", #]
;TI"POpen3.capture2e('date > date.tmp') # Contains meta character.
;TI"7# => ["", #]
;T;0o;
; [I"MThe command line may also contain arguments and options for the command:;T@o;; [I"#Open3.capture2e('echo "Foo"')
;TI"<# => ["Foo\n", #]
;T;0o;
; [I"Argument +exe_path+;T@o;
; [I"1Argument +exe_path+ is one of the following:;T@o;;
;;[o;;0; [o;
; [I"3The string path to an executable to be called.;To;;0; [o;
; [I" ["Sat Sep 30 09:01:46 AM CDT 2023\n", #]
;T;0o;
; [I"PRuby invokes the executable directly, with no shell and no shell expansion:;T@o;; [I" ["C #\n", #]
;TI"/Open3.capture2e('echo', 'hello', 'world')
;TI"C# => ["hello world\n", #];T;0:
@fileI"lib/open3.rb;T:0@omit_headings_from_table_of_contents_below0I"Open3.capture2e([env, ] command_line, options = {}) -> [stdout_and_stderr_s, status]
Open3.capture2e([env, ] exe_path, *args, options = {}) -> [stdout_and_stderr_s, status]
;T0[ I"(*cmd);T@FI"
Open3;TcRDoc::NormalModule00