Lines Matching refs:t2
37 t2=`mktemp`
39 if [[ ! -f "$t1" || ! -f "$t2" || ! -f "$t3" ]]; then
43 rm -f "$t1" "$t2" "$t3"
49 done | tee $t1 > $t2
50 printf "nonewline" >> $t2
95 [[ $(head -1 $t2) == "test00" ]] || \
98 [[ $(head -2 $t2) == $'test00\ntest01' ]] || \
101 [[ $(head -s 2 -n2 $t2) == $'test02\ntest03' ]] || \
104 [[ $(head -5 $t2) == $'test00\ntest01\ntest02\ntest03\ntest04' ]] || \
107 [[ $(head -6 $t2) == $'test00\ntest01\ntest02\ntest03\ntest04\nnonewline' ]] \
110 [[ $(head -10 $t2) == $'test00\ntest01\ntest02\ntest03\ntest04\nnonewline' ]] \
113 [[ $(tail -1 $t2) == 'nonewline' ]] || \
116 [[ $(tail -2 $t2) == $'test04\nnonewline' ]] || \
119 [[ $(tail -10 $t2) == $'test00\ntest01\ntest02\ntest03\ntest04\nnonewline' ]] \
122 rm -f "$t1" "$t2" "$t3"