source: trunk/essentials/sys-apps/gawk/test/nasty2.awk

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 247 bytes
Line 
1# Based on nasty.awk, test same thing for printf
2#
3BEGIN {
4a="aaaaa"
5a=a a #10
6a=a a #20
7a=a a #40
8a=a a #80
9a=a a #160
10a=a a # i.e. a is long enough
11
12printf("a = %s, f() = %s\n", a, f())
13print a
14}
15
16function f()
17{
18gsub(/a/, "123", a)
19return "X"
20}
Note: See TracBrowser for help on using the repository browser.