From 86b063b99d78df97fcd761073f437ce00b018712 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Tue, 31 Jul 2018 09:21:43 +0300 Subject: Fix handling of physical newlines in -v arguments and related improvemnts. --- awkgram.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'awkgram.c') 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; } -- cgit v1.2.3