aboutsummaryrefslogtreecommitdiffstats
path: root/test/readdir_retest.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-04-17 15:44:57 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-04-17 15:44:57 +0300
commitdde5bd1c2baadf2c34f15187efb481694043d606 (patch)
tree2f265c4eb53bcbc447ead67bc07a89dce9a19fac /test/readdir_retest.awk
parent0690ca31fad162d869544246b4d2693942c8fec9 (diff)
downloadegawk-dde5bd1c2baadf2c34f15187efb481694043d606.tar.gz
egawk-dde5bd1c2baadf2c34f15187efb481694043d606.tar.bz2
egawk-dde5bd1c2baadf2c34f15187efb481694043d606.zip
Fix problem with rebuilding records if using API parser.
Diffstat (limited to 'test/readdir_retest.awk')
-rw-r--r--test/readdir_retest.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/readdir_retest.awk b/test/readdir_retest.awk
new file mode 100644
index 00000000..079a9930
--- /dev/null
+++ b/test/readdir_retest.awk
@@ -0,0 +1,7 @@
+# Test field values after reparsing
+FNR == 1 { record1 = $0 }
+{
+ printf "[%s] [%s] [%s] [%s]\n", $1, $2, $3, $4
+ $0 = record1
+ printf "[%s] [%s] [%s] [%s]\n", $1, $2, $3, $4
+}