Skip to content
Snippets Groups Projects
Commit c166b718 authored by Herbert Xu's avatar Herbert Xu
Browse files

parser: Fix backquote support in here-document EOF mark


Currently using backquotes in a here-document EOF mark is broken
because dash tries to do command substitution on it.  This patch
fixes it by checking whether we're looking for an EOF mark during
tokenisation.

Reported-by: default avatarHarald van Dijk <harald@gigawatt.nl>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent e006ef83
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1037,6 +1037,11 @@ toggledq:
}
break;
case CBQUOTE: /* '`' */
if (checkkwd & CHKEOFMARK) {
USTPUTC('`', out);
break;
}
PARSEBACKQOLD();
break;
case CEOF:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment