From f3d4a2c72f315fd3bb0a939f6331ee0465fcfe2f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 22 Dec 2019 20:54:03 -0600 Subject: Bugfix: tee with no arguments was writing to stdout twice. Add basic smoketest while we're at it. --- tests/tee.test | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 tests/tee.test (limited to 'tests') diff --git a/tests/tee.test b/tests/tee.test new file mode 100755 index 00000000..fd3b9447 --- /dev/null +++ b/tests/tee.test @@ -0,0 +1,9 @@ +#!/bin/bash + +[ -f testing.sh ] && . testing.sh + +#testing "name" "command" "result" "infile" "stdin" + +testing "" "tee" "one" "" "one" +testing "" "tee -" "two\n" "" "two\n" +testing "" "tee one > two && cmp one two && echo that" "that\n" "" "three" -- cgit v1.2.3