summaryrefslogtreecommitdiffstats
path: root/contrib/awk/test/compare.awk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/awk/test/compare.awk')
-rw-r--r--contrib/awk/test/compare.awk13
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/awk/test/compare.awk b/contrib/awk/test/compare.awk
new file mode 100644
index 0000000..39a88f3
--- /dev/null
+++ b/contrib/awk/test/compare.awk
@@ -0,0 +1,13 @@
+BEGIN {
+ if (ARGV[1]) print 1
+ ARGV[1] = ""
+ if (ARGV[2]) print 2
+ ARGV[2] = ""
+ if ("0") print "zero"
+ if ("") print "null"
+ if (0) print 0
+}
+{
+ if ($0) print $0
+ if ($1) print $1
+}
OpenPOWER on IntegriCloud