tee.test 246 B

123456789
  1. #!/bin/bash
  2. [ -f testing.sh ] && . testing.sh
  3. #testing "name" "command" "result" "infile" "stdin"
  4. testing "" "tee" "one" "" "one"
  5. testing "" "tee -" "two\n" "" "two\n"
  6. testing "" "tee one > two && cmp one two && echo that" "that\n" "" "three"