diff options
| author | Bart Schaefer <schaefer@zsh.org> | 2022-06-08 20:48:42 -0700 |
|---|---|---|
| committer | Bart Schaefer <schaefer@zsh.org> | 2022-06-08 20:48:42 -0700 |
| commit | 734740a5ed52d236f3893cc738fb09c7203a5138 (patch) | |
| tree | a24c2e7e9dfbcc7e6e5149b0f31528e41f920a52 /Src/parse.c | |
| parent | 50335: simplify "wait" usage, fix signal handling (diff) | |
| download | zsh-734740a5ed52d236f3893cc738fb09c7203a5138.tar zsh-734740a5ed52d236f3893cc738fb09c7203a5138.tar.gz zsh-734740a5ed52d236f3893cc738fb09c7203a5138.tar.bz2 zsh-734740a5ed52d236f3893cc738fb09c7203a5138.tar.lz zsh-734740a5ed52d236f3893cc738fb09c7203a5138.tar.xz zsh-734740a5ed52d236f3893cc738fb09c7203a5138.tar.zst zsh-734740a5ed52d236f3893cc738fb09c7203a5138.zip | |
50341: disallow here-document markers containing newline
Diffstat (limited to 'Src/parse.c')
| -rw-r--r-- | Src/parse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/parse.c b/Src/parse.c index d612b7e17..5054e59d5 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -2248,6 +2248,9 @@ par_redir(int *rp, char *idstring) struct heredocs **hd; int htype = type; + if (strchr(tokstr, '\n')) + YYERROR(ecused); + /* * Add two here for the string to remember the HERE * terminator in raw and munged form. |
