aboutsummaryrefslogtreecommitdiff
path: root/testdir/T.misc
diff options
context:
space:
mode:
Diffstat (limited to 'testdir/T.misc')
-rwxr-xr-xtestdir/T.misc7
1 files changed, 7 insertions, 0 deletions
diff --git a/testdir/T.misc b/testdir/T.misc
index dff57db..9e74959 100755
--- a/testdir/T.misc
+++ b/testdir/T.misc
@@ -186,6 +186,13 @@ BEGIN { RS = ""
}' >foo1
$awk 'END {print NR}' foo1 | grep 4 >/dev/null || echo 'BAD: T.misc abcdef fails'
+# Test for RS regex matching an empty record at EOF
+echo a | $awk 1 RS='a\n' > foo1
+cat << \EOF > foo2
+
+EOF
+diff foo1 foo2 || echo 'BAD: T.misc RS regex matching an empty record at EOF fails'
+
# Test for RS regex being reapplied
echo aaa1a2a | $awk 1 RS='^a' >foo1
cat << \EOF > foo2