aboutsummaryrefslogtreecommitdiffstats
path: root/test/typedregex5.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-10-13 14:29:16 -0400
committerArnold D. Robbins <arnold@skeeve.com>2019-10-13 14:29:16 -0400
commit71f74c483838db2e18a7756469aa8c7edc76c33f (patch)
tree018b7830dbed25bf7e1b8145df751cbdccdc4f63 /test/typedregex5.awk
parent8f330804cf3061aacf627ca63f6483207230d7b6 (diff)
downloadegawk-71f74c483838db2e18a7756469aa8c7edc76c33f.tar.gz
egawk-71f74c483838db2e18a7756469aa8c7edc76c33f.tar.bz2
egawk-71f74c483838db2e18a7756469aa8c7edc76c33f.zip
Fix assigning typed regex to FS and RS.
Diffstat (limited to 'test/typedregex5.awk')
-rw-r--r--test/typedregex5.awk2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/typedregex5.awk b/test/typedregex5.awk
new file mode 100644
index 00000000..f702543b
--- /dev/null
+++ b/test/typedregex5.awk
@@ -0,0 +1,2 @@
+BEGIN { FS = @/./ }
+{ print typeof(FS), $1, NF }