Lines Matching refs:BEGIN
19 illegal break, continue, next or nextfile from BEGIN
20 BEGIN { nextfile }
41 BEGIN { s = "[x"; if (1 ~ s) print "foo"}
44 BEGIN { if ("x" ~ /$^/) print "ugh" }
50 BEGIN { print 1/0 }
53 BEGIN { x = 1; print x /= 0 }
56 BEGIN { x = 1; print x %= 0 }
59 BEGIN { print 1%0 }
62 BEGIN { x[1] = 0; split("a b c", y, x) }
77 BEGIN { f(f) }
81 BEGIN { f(f) }
104 BEGIN { print $"foo" }
107 BEGIN { f() }
111 BEGIN { printf("%s") }
114 BEGIN { printf("%z", "foo")}
120 BEGIN { f(123) }
152 illegal .*next.* from BEGIN
153 BEGIN { next }
159 BEGIN { print "abc" >"./nonexistentdir/foo" }
167 BEGIN { mp(xx) }
170 BEGIN { index("abc", /a/) }
173 BEGIN { print log(-1) }
176 BEGIN {print exp(1000)}
179 BEGIN { print >foo }
182 BEGIN { length("abc", "def") }
185 BEGIN { foo() }
188 BEGIN { print }
202 $awk -safe 'BEGIN{"date" | getline}' >foo 2>foo2
205 $awk -safe 'BEGIN{print >"foo"}' >foo 2>foo2
208 $awk -safe 'BEGIN{print >> "foo"}' >foo 2>foo2
211 $awk -safe 'BEGIN{print | "foo"}' >foo 2>foo2
214 $awk -safe 'BEGIN {system("date")}' >foo 2>foo2