aboutsummaryrefslogtreecommitdiffstats
path: root/test/devfd1.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/devfd1.awk')
-rw-r--r--test/devfd1.awk11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/devfd1.awk b/test/devfd1.awk
new file mode 100644
index 00000000..6795704d
--- /dev/null
+++ b/test/devfd1.awk
@@ -0,0 +1,11 @@
+BEGIN {
+ while (1) {
+ if ((getline l1 < "/dev/fd/4") <= 0)
+ break
+ print l1
+
+ if ((getline l2 < "/dev/fd/5") <= 0)
+ break
+ print l2
+ }
+}