aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
Diffstat (limited to 'awkgram.y')
-rw-r--r--awkgram.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/awkgram.y b/awkgram.y
index 95353c15..f3d3b38b 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -3852,6 +3852,8 @@ retry:
if (c == '\r') /* allow MS-DOS files. bleah */
c = nextc(true);
if (c == '\n') {
+ if (do_posix)
+ fatal(_("POSIX does not allow physical newlines in string values"));
sourceline++;
continue;
}