diff options
Diffstat (limited to 'lib/open3.rb')
-rw-r--r-- | lib/open3.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/open3.rb b/lib/open3.rb index a6e6c5d62b..569c8968b4 100644 --- a/lib/open3.rb +++ b/lib/open3.rb @@ -1,11 +1,14 @@ +# open3.rb: Spawn a program like popen, but with stderr, too. You might also +# want to use this if you want to bypass the shell. (By passing multiple args, +# with IO#popen does not allow) +# # Usage: # require "open3" # -# in, out, err = Open3.popen3('nroff -man') +# stdin, stdout, stderr = Open3.popen3('nroff -man') # or # include Open3 -# in, out, err = popen3('nroff -man') -# +# stdin, stdout, stderr = popen3('nroff -man') module Open3 #[stdin, stdout, stderr] = popen3(command); |