aboutsummaryrefslogtreecommitdiffstats
path: root/test/clos1way2.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/clos1way2.awk')
-rw-r--r--test/clos1way2.awk3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/clos1way2.awk b/test/clos1way2.awk
index 5794bec5..c734c142 100644
--- a/test/clos1way2.awk
+++ b/test/clos1way2.awk
@@ -1,5 +1,6 @@
{
- cmd = "cat - 1>&2; sleep 2"
+ # We use "&&" and not ";" so it works with Windows shells as well.
+ cmd = "cat - 1>&2 && sleep 2"
print |& cmd; close(cmd, "to")
fflush(cmd)
print |& cmd; print ERRNO