xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/setrec1.awk (revision d48be21240dfd051b689384ce2b23479d757f2d8)
1function reassign(x, y) {
2   $0 = x
3   print y
4}
5
6BEGIN {
7   $0 = substr("geronimo", 5, 3)
8   reassign(" 52", $1)
9}
10