aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/awkgram.c b/awkgram.c
index 36947c41..10c55fa4 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -6272,6 +6272,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;
}