aboutsummaryrefslogtreecommitdiffstats
path: root/test/exitval2.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/exitval2.awk')
-rw-r--r--test/exitval2.awk3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/exitval2.awk b/test/exitval2.awk
new file mode 100644
index 00000000..ed05e76b
--- /dev/null
+++ b/test/exitval2.awk
@@ -0,0 +1,3 @@
+BEGIN { print "foo" | "read x ; echo $x ; exit 12" }
+# this should still exit 0, as pointed out by kenny mccormack in
+# comp.lang.awk on 2 feb 2005