aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-07-31 09:21:43 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-07-31 09:21:43 +0300
commit86b063b99d78df97fcd761073f437ce00b018712 (patch)
tree6f834ea3d46ecb541bd6a722e565a83aac0e2268 /awkgram.c
parentf856979d85ace61bfeb2d31146485ec668202ad8 (diff)
downloadegawk-86b063b99d78df97fcd761073f437ce00b018712.tar.gz
egawk-86b063b99d78df97fcd761073f437ce00b018712.tar.bz2
egawk-86b063b99d78df97fcd761073f437ce00b018712.zip
Fix handling of physical newlines in -v arguments and related improvemnts.
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;
}