NetBSD/gnu/dist/gawk/test/compare.awk
wiz 06c09073b3 Initial import of gawk-3.1.3.
Seven releases since the last import, so the ChangeLog is quite big;
please refer to the NEWS file included in the import for details.
Among others, this also addresses PR 23054.
2003-10-06 15:55:26 +00:00

14 lines
183 B
Awk

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
}