about summary refs log tree commit homepage
path: root/t/bin/utee
diff options
context:
space:
mode:
Diffstat (limited to 't/bin/utee')
-rwxr-xr-xt/bin/utee12
1 files changed, 0 insertions, 12 deletions
diff --git a/t/bin/utee b/t/bin/utee
deleted file mode 100755
index 7b61fea..0000000
--- a/t/bin/utee
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env ruby
-# -*- encoding: binary -*-
-# tee(1) as distributed on most(all?) systems is buffered in luserspace
-# this only does unbuffered writes (with line-buffered input) to make
-# test output appear in real-time
-$stdin.binmode
-$stdout.binmode
-fp = File.open(ARGV.shift, "wb")
-$stdin.each_line do |line|
-  fp.syswrite line
-  $stdout.syswrite line
-end