diff options
author | James Raynard <jraynard@FreeBSD.org> | 1997-10-14 18:17:11 +0000 |
---|---|---|
committer | James Raynard <jraynard@FreeBSD.org> | 1997-10-14 18:17:11 +0000 |
commit | 728510ce917f315d75e9fb50728222d8c278425a (patch) | |
tree | d84200da2f7f2d8f1321c265bc6ddd7ce15633f8 /contrib/awk/test/compare.awk |
Notes
Diffstat (limited to 'contrib/awk/test/compare.awk')
-rw-r--r-- | contrib/awk/test/compare.awk | 13 |
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 0000000000000..39a88f317adc3 --- /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 +} |