~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to test/clos1way2.awk

  • Committer: Andrew J. Schorr
  • Date: 2014-08-03 18:44:47 UTC
  • mfrom: (408.7.1)
  • mto: (408.2.352)
  • mto: This revision was merged to the branch mainline in revision 507.
  • Revision ID: git-v1:ff21da5c7f072a69e9582f1a7ae2039f27f564cf
Merge branch 'gawk-4.1-stable' to get --profile to work with -M.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{
2
 
        # We use "&&" and not ";" so it works with Windows shells as well.
3
 
        cmd = "cat - 1>&2 && sleep 2"
4
 
        print |& cmd; close(cmd, "to")
5
 
        fflush(cmd)
6
 
        print |& cmd; print ERRNO
7
 
}