awk/bugs-fixed/fs-overflow.awk
2018-09-23 17:35:45 -07:00

14 lines
159 B
Awk

function foo() {
a = "";
for (i = 0; i < 10000; i++) {
a = a "c";
}
return a;
}
BEGIN {
FS = foo();
$0="foo";
print $1;
}