Home
last modified time | relevance | path

Searched refs:TEMP0 (Results 1 – 16 of 16) sorted by relevance

/illumos-gate/usr/src/test/util-tests/tests/awk/tests/
H A DT.misc39 } ' $TEMP0 > $TEMP2
68 x y z' > $TEMP0
119 }' > $TEMP0
152 ' 2> $TEMP0
159 ' 2> $TEMP0
169 ' > $TEMP0
191 ' > $TEMP0
198 jkl' > $TEMP0
247 ' > $TEMP0
277 ' 2> $TEMP0
[all …]
H A DT.gawk38 1 2 3 4' > $TEMP0
50 x\\y' > $TEMP0
65 x\\\y' > $TEMP0
86 xaax' > $TEMP0
113 xaax' > $TEMP0
140 x\\y' > $TEMP0
166 5 6' > $TEMP0
200 a*b' > $TEMP0
253 5000' > $TEMP0
290 c d' > $TEMP0
[all …]
H A DT.split8 TEMP0=$WORKDIR/test.temp.0
52 e:f:g:h' > $TEMP0
72 }' $TEMP0 > $TEMP1
79 bar' > $TEMP0
85 }' $TEMP0 > $TEMP1
115 ' > $TEMP0
128 }' $TEMP0 > $TEMP1
144 }' $TEMP0 > $TEMP1
158 }' $TEMP0 > $TEMP2
174 }' $TEMP0 > $TEMP2
[all …]
H A DT.nextfile8 TEMP0=$WORKDIR/test.temp.0
21 rm -f $TEMP0
24 sed 1q $i >> $TEMP0
31 diff $TEMP0 $TEMP1 || fail 'BAD: T.nextfile 1'
42 diff $TEMP0 $TEMP1 || fail 'BAD: T.nextfile 1f'
54 diff $TEMP0 $TEMP1 || fail 'BAD: T.nextfile 1w'
71 rm -f $TEMP0
74 sed 100q $i >> $TEMP0
85 > $TEMP0 # empty
91 rm -f $TEMP0
[all …]
H A DT.rt8 TEMP0=$WORKDIR/test.temp.0
25 printf 'a\n' > $TEMP0
26 $AWK '{ print (RT == "\n" ? "true" : "false"); }' $TEMP0 > $TEMP1
30 printf 'a' > $TEMP0
31 $AWK '{ print (RT == "" ? "true" : "false"); }' $TEMP0 > $TEMP1
65 $AWK 'BEGIN { RS = ""; } { print NF, length(RT); }' $TEMP0 > $TEMP1
71 $AWK 'BEGIN { RS = ""; } { print NF, length(RT); }' $TEMP0 > $TEMP1
77 $AWK 'BEGIN { RS = ""; } { print NF, length(RT); }' $TEMP0 > $TEMP1
82 printf 'a\n\na b\na b c d\nq r s t u\n\n\n\n\nv w x y z' > $TEMP0
89 printf 'a\036' > $TEMP0
[all …]
H A DT.clv8 TEMP0=$WORKDIR/test.temp.0
52 goodbye' > $TEMP0
55 ' x=1 x=2 x=3 $TEMP0 > $TEMP1
73 zzz' > $TEMP0
95 $AWK '{ print }' 99_=$TEMP0 /dev/null > $TEMP0 2> $TEMP2
120 echo 'BEGIN { print x, y, z1 }' > $TEMP0
125 echo 'BEGIN { print x, y, z1 }' > $TEMP0
141 END { print x }' > $TEMP0
148 END { print x }' > $TEMP0
155 NR==1 { print x }' > $TEMP0
[all …]
H A DT.close8 TEMP0=$WORKDIR/test.temp.0
21 rm -f $TEMP0
22 $AWK '{ print >>"'$TEMP0'"; close("'$TEMP0'") }' /etc/passwd
23 diff /etc/passwd $TEMP0 || fail 'BAD: T.close (1)'
25 ls -l > $TEMP0
26 tail -1 $TEMP0 > $TEMP1
27 $AWK '{ print >"'$TEMP2'"; close("'$TEMP2'") }' $TEMP0
44 BEGIN { print "hello" > "'$TEMP0'"; print close("'$TEMP0'"); }
50 BEGIN { print "hello" | "cat > '$TEMP0'"; print close("cat > '$TEMP0'"); }
H A DT.main8 TEMP0=$WORKDIR/test.temp.0
30 echo 'a::b::c' > $TEMP0
31 $AWK -F:: '{print NF}' $TEMP0 > $TEMP1
35 echo 'a::b::c' > $TEMP0
36 $AWK -F :: '{print NF}' $TEMP0 > $TEMP1
40 echo 'a b c' > $TEMP0
41 $AWK -F t '{print NF}' $TEMP0 > $TEMP1
45 echo 'a b c' > $TEMP0
46 $AWK -Ft '{print NF}' $TEMP0 > $TEMP1
50 echo 'atabbtabc' > $TEMP0
[all …]
H A DT.argv8 TEMP0=$WORKDIR/test.temp.0
70 3' > $TEMP0
74 $AWK '{print L $0}' L=foo <$TEMP0 > $TEMP2
79 3' > $TEMP0
83 $AWK '{print L $0}' L=foo $TEMP0 > $TEMP2
88 3' > $TEMP0
92 cat $TEMP0 | $AWK '{print L $0}' L=foo - > $TEMP2
97 3' > $TEMP0
104 $AWK '{print L $0}' L=foo $TEMP0 L=glop $TEMP0 > $TEMP2
109 3' > $TEMP0
[all …]
H A DT.latin18 TEMP0=$WORKDIR/test.temp.0
27 LC_ALL=C grep '[�-�]' latin1 > $TEMP0
29 diff $TEMP0 $TEMP1 || fail 'BAD: T.latin1 2'
31 $AWK '{ gsub(/\351/, "\370"); print }' latin1 > $TEMP0
33 diff $TEMP0 $TEMP1 || fail 'BAD: T.latin1 3'
35 $AWK '{ gsub(/[^\300-\370]/, ""); print }' latin1 > $TEMP0
37 diff $TEMP0 $TEMP1 || fail 'BAD: T.latin1 4'
51 This is another line.' > $TEMP0
54 $AWK '/[��]/' $TEMP0 > $TEMP2
H A DT.overflow8 TEMP0=$WORKDIR/test.temp.0
56 } ' > $TEMP0
57 $AWK '{print NF}' $TEMP0 > $TEMP1
68 }' > $TEMP0 2> $TEMP0
97 $AWK '{print $40000000000000}' < $TEMP1 > $TEMP2 2> $TEMP0
98 grep "out of range field" $TEMP0 >/dev/null || fail "BAD: T.overflow \$400000"
H A DT.errmsg12 TEMP0=$WORKDIR/test.temp.0
230 echo xxx > $TEMP0
232 b' $TEMP0 > $TEMP1 2> $TEMP2
235 $AWK -safe 'BEGIN{"date" | getline}' > $TEMP0 2> $TEMP2
238 $AWK -safe 'BEGIN{print >"'$TEMP0'"}' > $TEMP0 2> $TEMP2
241 $AWK -safe 'BEGIN{print >> "'$TEMP0'"}' > $TEMP0 2> $TEMP2
244 $AWK -safe 'BEGIN{print | "'$TEMP0'"}' > $TEMP0 2> $TEMP2
247 $AWK -safe 'BEGIN {system("date")}' > $TEMP0 2> $TEMP2
H A DT.delete8 TEMP0=$WORKDIR/test.temp.0
24 ' > $TEMP0
36 }' $TEMP0 > $TEMP1
H A DT.builtin8 TEMP0=$WORKDIR/test.temp.0
75 a b c' > $TEMP0
79 $AWK '{ n = split($0, x); print length(x) }' < $TEMP0 > $TEMP2
H A DT.lilly8 TEMP0=$WORKDIR/test.temp.0
22 cat > $TEMP0 <<EOF
46 system(ENVIRON["AWK"] " -f '$TEMP2' <\"'$TEMP0'\" ")
H A DT.-f-f17 TEMP0=$WORKDIR/test.temp.0
26 end' > $TEMP0
30 diff $TEMP0 $TEMP3 || fail 'BAD: T.-f-f multiple -fs'