~vcs-imports/gawk/master

1
2
3
4
5
6
7
8
9
10
11
12
13
14
BEGIN {
    cat  = "cat ; exit 3"
    print system("echo xxx | (cat ; exit 4)")

    print "YYY" | cat

    print close(cat)

    echo = "echo boo ; exit 5"
    echo | getline boo
    print "got", boo

    print close(echo)
}