summaryrefslogtreecommitdiff
path: root/test/rtlen.sh
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-10-02 20:21:29 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-10-02 20:21:29 +0200
commit953f97ddd184f3dfb1ce16ee2965012965b17fac (patch)
tree96c79805953c5e58856a323f0d5426caf9e16510 /test/rtlen.sh
parent8dbfb49319c538b0682d4dbcc977ba5b811b86b0 (diff)
downloadgawk-953f97ddd184f3dfb1ce16ee2965012965b17fac.tar.gz
Fix RT handling if partial terminators.
Diffstat (limited to 'test/rtlen.sh')
-rwxr-xr-xtest/rtlen.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/rtlen.sh b/test/rtlen.sh
new file mode 100755
index 00000000..4a740451
--- /dev/null
+++ b/test/rtlen.sh
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+AWK=${AWK:-../gawk}
+
+$AWK 'BEGIN {printf "0\n\n\n1\n\n\n\n\n2\n\n"; exit}' | $AWK 'BEGIN {RS=""}; {print length(RT)}'