aboutsummaryrefslogtreecommitdiffstats
path: root/test/rtlen.sh
diff options
context:
space:
mode:
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)}'