summaryrefslogtreecommitdiffstats
path: root/contrib/awk/test/getlnhd.awk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/awk/test/getlnhd.awk')
-rw-r--r--contrib/awk/test/getlnhd.awk10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/awk/test/getlnhd.awk b/contrib/awk/test/getlnhd.awk
new file mode 100644
index 0000000..f0f801b
--- /dev/null
+++ b/contrib/awk/test/getlnhd.awk
@@ -0,0 +1,10 @@
+BEGIN { pipe = "cat <<EOF\n"
+ pipe = pipe "select * from user\n"
+ pipe = pipe " where Name = 'O\\'Donell'\n"
+ pipe = pipe "EOF\n"
+
+ while ((pipe | getline) > 0)
+ print
+
+ exit 0
+}
OpenPOWER on IntegriCloud