ash: parser: Save/restore here-documents in command substitution
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 17 Feb 2020 11:11:26 +0000 (12:11 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 17 Feb 2020 11:11:26 +0000 (12:11 +0100)
commit74aaf05170d6f224194c98ee0434e2decae45735
treec228795cc7ccfcf7cfab18c054ef7bc8e9d775d8
parentafc91faeddd6b8234dccea2f7913f57a5bb3d1ec
ash: parser: Save/restore here-documents in command substitution

Upstream comment:

    Date: Sat, 19 May 2018 02:39:42 +0800
    parser: Save/restore here-documents in command substitution

    This patch changes the parsing of here-documents within command
    substitution, both old style and new style.  In particular, the
    original here-document list is saved upon the beginning of parsing
    command substitution and restored when exiting.

    This means that here-documents outside of command substitution
    can no longer be filled by text within it and vice-versa.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c