aboutsummaryrefslogtreecommitdiffstats
path: root/test/typeof5.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-02-17 08:18:51 +0200
committerArnold D. Robbins <arnold@skeeve.com>2017-02-17 08:18:51 +0200
commit4ce031ad3c3d157a425f721688a09a7dde018619 (patch)
tree340825da478a70246a71f441ba69b6188c85dd4a /test/typeof5.awk
parenteb8d0c64228657bad4ef2e2fd732eeed937f3af1 (diff)
downloadegawk-4ce031ad3c3d157a425f721688a09a7dde018619.tar.gz
egawk-4ce031ad3c3d157a425f721688a09a7dde018619.tar.bz2
egawk-4ce031ad3c3d157a425f721688a09a7dde018619.zip
Fix typeof on null fields.
Diffstat (limited to 'test/typeof5.awk')
-rw-r--r--test/typeof5.awk10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/typeof5.awk b/test/typeof5.awk
new file mode 100644
index 00000000..30cd6aca
--- /dev/null
+++ b/test/typeof5.awk
@@ -0,0 +1,10 @@
+BEGIN {
+ print typeof($0)
+ print typeof($1)
+}
+
+{
+ $3 = $1
+ print typeof($2)
+ print typeof($3)
+}