lib/backticks/command.rb in backticks-0.1.0 vs lib/backticks/command.rb in backticks-0.1.1
- old
+ new
@@ -29,9 +29,11 @@
@stdin = stdin
@stdout = stdout
@stderr = stderr
@interactive = interactive
+ stdin.close unless @interactive
+
@captured_input = String.new.force_encoding(Encoding::BINARY)
@captured_output = String.new.force_encoding(Encoding::BINARY)
@captured_error = String.new.force_encoding(Encoding::BINARY)
end
\ No newline at end of file