ash: fix error during recursive processing of here document
authorRon Yorston <rmy@pobox.com>
Thu, 29 Oct 2015 16:44:56 +0000 (16:44 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 21 Mar 2016 18:28:06 +0000 (14:28 -0400)
commit4194c2875310c13ee3ca2bb0e1aea6a2ae67c55a
tree30aefd9a2561892308cd186d495983f19785cd1d
parent3a76bb5136d05f94ee62e377aa723e63444912c7
ash: fix error during recursive processing of here document

Save the value of the checkkwd flag to prevent it being clobbered
during recursion.

Based on commit ec2c84d from git://git.kernel.org/pub/scm/utils/dash/dash.git
by Herbert Xu.

function                                             old     new   delta
readtoken                                            190     203     +13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 13/0)               Total: 13 bytes

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
(cherry picked from commit 713f07d906d9171953be0c12e2369869855b6ca6)
shell/ash.c
shell/ash_test/ash-heredoc/heredoc3.right [new file with mode: 0644]
shell/ash_test/ash-heredoc/heredoc3.tests [new file with mode: 0755]